We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3c9702 commit 715eccbCopy full SHA for 715eccb
libraries/esp8266/examples/interactive/interactive.ino
@@ -85,7 +85,7 @@ void loop() {
85
case 'n': DO(WiFi.setSleepMode(WIFI_NONE_SLEEP));
86
case 'l': DO(WiFi.setSleepMode(WIFI_LIGHT_SLEEP));
87
case 'm': DO(WiFi.setSleepMode(WIFI_MODEM_SLEEP));
88
- case 's': DO(WiFi.config(staticip, gateway, subnet));
89
- case 'D': DO(wifi_station_dhcpc_start());
+ case 'S': DO(WiFi.config(staticip, gateway, subnet)); // use static address
+ case 's': DO(WiFi.config(0u, 0u, 0u)); // back to dhcp client
90
}
91
0 commit comments