Problem with WiFi after DeepSleep
Posted: Tue Aug 15, 2017 5:58 pm
Since my ESP8266 was crashing after a 60sec. delay, i tried Deepsleep
With real values for WPA and device i get this error in ESplorer
63rd
6666663rl
when connection to my wireless LAN.
Is there an error in my code?
Code: Select all
WiFi.disconnect();
Serial.println("disconnect");
// Serial.println("Sleep 60 Seconds");
//delay(60000);
ESP.deepSleep(60000);
delay(100);
Serial.println("wakeup");
//WLAN verbinden
Serial.println("connect");
esid="xxx";
epass = "abcdefg";
etargetIP = "192.168.1.X";
erouterIP = "192.168.1.2";
String ma255 = "255.255.255.0";
_ip.fromString(etargetIP);
_gw.fromString(erouterIP);
_ma.fromString(ma255);
WiFi.begin(esid.c_str(), epass.c_str());
WiFi.config(_ip, _gw, _ma);
With real values for WPA and device i get this error in ESplorer
63rd
6666663rl
when connection to my wireless LAN.
Is there an error in my code?