Skip to content

Commit

Permalink
#16: force booting in station mode
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-stepanov committed Sep 9, 2019
1 parent 668e7ce commit 9b7120c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esp8266-yeelight-switch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 ");
Expand Down

0 comments on commit 9b7120c

Please sign in to comment.