summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/help.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-03 15:54:57 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-03 15:54:57 +0100
commit496a601c3b419371c7d8613ae36c85738d6a3c3b (patch)
treeba7efb1a79c8e5ca255c5daa14befc51786603ad /esp8266/help.c
parentf873a5005abf3fc4eb1c2a08fa1de0e6c5dc132c (diff)
downloadmicropython-496a601c3b419371c7d8613ae36c85738d6a3c3b.tar.gz
micropython-496a601c3b419371c7d8613ae36c85738d6a3c3b.zip
esp8266: Shrink help text by a few lines, to fit in smaller windows.
Diffstat (limited to 'esp8266/help.c')
-rw-r--r--esp8266/help.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/esp8266/help.c b/esp8266/help.c
index 89508308fb..3a4d6e83a2 100644
--- a/esp8266/help.c
+++ b/esp8266/help.c
@@ -32,18 +32,15 @@ STATIC const char *help_text =
"Welcome to MicroPython!\n"
"\n"
"For online docs please visit http://docs.micropython.org/en/latest/esp8266/ .\n"
-"To get diagnostic information to include in bug reports, execute 'import port_diag'.\n"
+"For diagnostic information to include in bug reports execute 'import port_diag'.\n"
"\n"
"Basic WiFi configuration:\n"
"\n"
"import network\n"
"sta_if = network.WLAN(network.STA_IF)\n"
-"# Scan for available access points:\n"
-"sta_if.scan()\n"
-"# Connect to an AP\n"
-"sta_if.connect(\"<AP_name>\", \"<password>\")\n"
-"# Check for successful connection:\n"
-"sta_if.isconnected()\n"
+"sta_if.scan() # Scan for available access points\n"
+"sta_if.connect(\"<AP_name>\", \"<password>\") # Connect to an AP\n"
+"sta_if.isconnected() # Check for successful connection\n"
"# Change name/password of ESP8266's AP:\n"
"ap_if = network.WLAN(network.AP_IF)\n"
"ap_if.config(essid=\"<AP_NAME>\", authmode=network.AUTH_WPA_WPA2_PSK, password=\"<password>\")\n"