mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Put WiFi into station mode in examples (#3731)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
098172c5e4
commit
2abbc36da4
@ -12,6 +12,7 @@ void setup() {
|
||||
Serial.begin(115200);
|
||||
delay(10);
|
||||
|
||||
WiFi.mode(WIFI_STA);
|
||||
wifiMulti.addAP("ssid_from_AP_1", "your_password_for_AP_1");
|
||||
wifiMulti.addAP("ssid_from_AP_2", "your_password_for_AP_2");
|
||||
wifiMulti.addAP("ssid_from_AP_3", "your_password_for_AP_3");
|
||||
@ -30,4 +31,4 @@ void loop() {
|
||||
Serial.println("WiFi not connected!");
|
||||
delay(1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user