1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Put WiFi into station mode in examples (#3731)

This commit is contained in:
James Stanley
2017-10-22 06:53:01 +01:00
committed by Ivan Grokhotkov
parent 098172c5e4
commit 2abbc36da4
23 changed files with 24 additions and 1 deletions

View File

@ -179,6 +179,7 @@ void setup(void){
//WIFI INIT
DBG_OUTPUT_PORT.printf("Connecting to %s\n", ssid);
if (String(WiFi.SSID()) != String(ssid)) {
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
}