Possible fix
This commit is contained in:
parent
bd9d1e838d
commit
36c857a4be
|
@ -92,7 +92,7 @@ void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
|
||||||
data = (char*)ps_malloc(100000);
|
data = (char*)ps_malloc(2000000LL);
|
||||||
|
|
||||||
//Initial display settings
|
//Initial display settings
|
||||||
display.begin();
|
display.begin();
|
||||||
|
|
|
@ -18,7 +18,10 @@ void Network::begin()
|
||||||
delay(1000);
|
delay(1000);
|
||||||
++cnt;
|
++cnt;
|
||||||
|
|
||||||
if (cnt == 20)
|
WiFi.reconnect();
|
||||||
|
delay(5000);
|
||||||
|
|
||||||
|
if (cnt == 10)
|
||||||
{
|
{
|
||||||
Serial.println("Can't connect to WIFI, restarting");
|
Serial.println("Can't connect to WIFI, restarting");
|
||||||
delay(100);
|
delay(100);
|
||||||
|
@ -67,7 +70,10 @@ bool Network::getData(char *data)
|
||||||
delay(1000);
|
delay(1000);
|
||||||
++cnt;
|
++cnt;
|
||||||
|
|
||||||
if (cnt == 7)
|
WiFi.reconnect();
|
||||||
|
delay(5000);
|
||||||
|
|
||||||
|
if (cnt == 10)
|
||||||
{
|
{
|
||||||
Serial.println("Can't connect to WIFI, restart initiated.");
|
Serial.println("Can't connect to WIFI, restart initiated.");
|
||||||
delay(100);
|
delay(100);
|
||||||
|
|
Loading…
Reference in New Issue