Skip to content

Commit d60cb8e

Browse files
committed
esp8266/help: Add "sta_if.active(True)" command.
As reported on the forum by Roberthh.
1 parent f16bec6 commit d60cb8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ STATIC const char *help_text =
3737
"Basic WiFi configuration:\n"
3838
"\n"
3939
"import network\n"
40-
"sta_if = network.WLAN(network.STA_IF)\n"
40+
"sta_if = network.WLAN(network.STA_IF); sta_if.active(True)\n"
4141
"sta_if.scan() # Scan for available access points\n"
4242
"sta_if.connect(\"<AP_name>\", \"<password>\") # Connect to an AP\n"
4343
"sta_if.isconnected() # Check for successful connection\n"

0 commit comments

Comments
 (0)