esp8266/help: Add "sta_if.active(True)" command.
As reported on the forum by Roberthh.
This commit is contained in:
parent
f16bec6bc9
commit
d60cb8e180
@ -37,7 +37,7 @@ STATIC const char *help_text =
|
|||||||
"Basic WiFi configuration:\n"
|
"Basic WiFi configuration:\n"
|
||||||
"\n"
|
"\n"
|
||||||
"import network\n"
|
"import network\n"
|
||||||
"sta_if = network.WLAN(network.STA_IF)\n"
|
"sta_if = network.WLAN(network.STA_IF); sta_if.active(True)\n"
|
||||||
"sta_if.scan() # Scan for available access points\n"
|
"sta_if.scan() # Scan for available access points\n"
|
||||||
"sta_if.connect(\"<AP_name>\", \"<password>\") # Connect to an AP\n"
|
"sta_if.connect(\"<AP_name>\", \"<password>\") # Connect to an AP\n"
|
||||||
"sta_if.isconnected() # Check for successful connection\n"
|
"sta_if.isconnected() # Check for successful connection\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user