Skip to content

Commit

Permalink
TEST: WiFi.setSleepMode(WIFI_NONE_SLEEP)
Browse files Browse the repository at this point in the history
WiFi has been crashing every day or so recently. Google says this might help

Source: esp8266/Arduino#5083
  • Loading branch information
pwnrazr committed Aug 26, 2021
1 parent fd78ecf commit be6078d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ESP8266_SmartExtension.ino
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ unsigned long switch_prevMillis = 0, heartbeat_prevMillis = 0;
void setup()
{
WiFi.mode(WIFI_STA);
WiFi.setSleepMode(WIFI_NONE_SLEEP);
commssetup();
otasetup();

Expand Down

0 comments on commit be6078d

Please sign in to comment.