From d60cb8e18094ed51141fb6685e6e52292bd349a2 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 10 May 2016 23:21:32 +0300 Subject: esp8266/help: Add "sta_if.active(True)" command. As reported on the forum by Roberthh. --- esp8266/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266/help.c') diff --git a/esp8266/help.c b/esp8266/help.c index 3a4d6e83a2..5370ee71ea 100644 --- a/esp8266/help.c +++ b/esp8266/help.c @@ -37,7 +37,7 @@ STATIC const char *help_text = "Basic WiFi configuration:\n" "\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.connect(\"\", \"\") # Connect to an AP\n" "sta_if.isconnected() # Check for successful connection\n" -- cgit v1.2.3