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:
committed by
Ivan Grokhotkov
parent
098172c5e4
commit
2abbc36da4
@ -17,6 +17,7 @@ void setup() {
|
||||
Serial.println("Arduino AVR-ISP over TCP");
|
||||
avrprog.setReset(false); // let the AVR run
|
||||
|
||||
WiFi.mode(WIFI_STA);
|
||||
WiFi.begin(ssid, pass);
|
||||
while (WiFi.waitForConnectResult() != WL_CONNECTED);
|
||||
|
||||
|
Reference in New Issue
Block a user