Skip to content

Commit acbee10

Browse files
committed
Put WiFi into station mode in examples
I was surprised that many of the examples implicitly create an unsecured access point with complete access to my application, which was based off the WiFiWebServer example. I'm sure I'm not the only one surprised by this behaviour. Putting the WiFi into station mode prevents the open access point from being created.
1 parent dd15d2a commit acbee10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266AVRISP/examples/Arduino_Wifi_AVRISP/Arduino_Wifi_AVRISP.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void setup() {
1717
Serial.println("Arduino AVR-ISP over TCP");
1818
avrprog.setReset(false); // let the AVR run
1919

20-
WiFi.mode(WIFI_STA)
20+
WiFi.mode(WIFI_STA);
2121
WiFi.begin(ssid, pass);
2222
while (WiFi.waitForConnectResult() != WL_CONNECTED);
2323

0 commit comments

Comments
 (0)