-->
Page 1 of 1

Problem with WiFi after DeepSleep

PostPosted: Tue Aug 15, 2017 5:58 pm
by snowman
Since my ESP8266 was crashing after a 60sec. delay, i tried Deepsleep

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?