Open rafaelpascale opened 4 years ago
Look at my project. It works well.
https://github.com/dontsovcmc/waterius/blob/master/ESP8266/src/main.cpp
the difference I see:
Here is initializing Wifi with SSID & pwd I need: https://github.com/dontsovcmc/waterius/blob/master/ESP8266/src/wifi_settings.cpp#L144
Init:
WiFi.begin(VALUE(SSID_NAME), VALUE(SSID_PASS), 0, NULL, false); //connect=false, cause we call Wifi.begin() next;
Connect in deep sleep loop:
WiFi.begin();
uint32_t start = millis();
while (WiFi.status() != WL_CONNECTED && millis() - start < ESP_CONNECT_TIMEOUT) {
LOG_NOTICE("WIF", "Status: " << WiFi.status());
delay(200);
check_voltage(data, cdata);
}
Is autoconnect not working upon wake? This is not a known issue, can you provide some debug enabled logs? This should not have to be done
ESP 8266 using deep Sleep and Autoconnect
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
Hello
After using deep sleep to save power, the program goes back to the beginning and it is necessary to login again and enter the password. Would it have any way that after entering deep sleep mode the autoconnection is automatic?
De Problem description
Settings in IDE
Module: NodeMcu, Wemos D1
Additional libraries:
Sketch