You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed lately that multiple devices I have have started dropping off WiFi and reconnecting (causing MQTT dropouts etc) unless I specify WiFi.setSleepMode(WIFI_NONE_SLEEP) when setting up the WiFi adapter.
This is most likely related to the fact that the default for the wifi sleep type is MODEM_SLEEP, a change in behaviour resulting from the ESP8266 Arduino core updating the underlying nonos-sdk and the introduction of the setSleepMode command in v2.5.0 which calls the nonos wifi_set_sleep_type function. This is not PlatformIO related. If you have this issue with PlatformIO but not the Arduino IDE when using the same ESP8266 Arduino core version, that is a different kettle of fish entirely. So this issue should be closed, and instead raised over at https://github.com/esp8266/Arduino if something isn't working as expected.
I've noticed lately that multiple devices I have have started dropping off WiFi and reconnecting (causing MQTT dropouts etc) unless I specify
WiFi.setSleepMode(WIFI_NONE_SLEEP)
when setting up the WiFi adapter.ESP.getFullVersion() output:
WiFi setup code in setup():
And the functions:
update_status is a global string that is included on the web page interface.
If I comment out the setSleepMode line, I get regular wifi disconnections.
The text was updated successfully, but these errors were encountered: