From 9b7120cd2d2abd16517ea042b0653fc5e583b168 Mon Sep 17 00:00:00 2001 From: Denis Stepanov <22733222+denis-stepanov@users.noreply.github.com> Date: Mon, 9 Sep 2019 22:53:09 +0200 Subject: [PATCH] #16: force booting in station mode --- esp8266-yeelight-switch.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/esp8266-yeelight-switch.ino b/esp8266-yeelight-switch.ino index 81b6607..cfb8a08 100644 --- a/esp8266-yeelight-switch.ino +++ b/esp8266-yeelight-switch.ino @@ -434,6 +434,7 @@ void setup(void) { // Network builtinled_state = HIGH; digitalWrite(BUILTINLED, builtinled_state); + WiFi.mode(WIFI_STA); // Important to avoid starting with an access point WiFi.hostname(HOSTNAME); WiFi.begin(); // Connect using stored credentials Serial.print("Connecting to ");