summaryrefslogtreecommitdiff
path: root/ports/esp32/help.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp32/help.c')
-rw-r--r--ports/esp32/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/help.c b/ports/esp32/help.c
index 2351d7dc7..62639a0b4 100644
--- a/ports/esp32/help.c
+++ b/ports/esp32/help.c
@@ -48,7 +48,7 @@ const char esp32_help_text[] =
"Basic WiFi configuration:\n"
"\n"
"import network\n"
- "sta_if = network.WLAN(network.STA_IF); sta_if.active(True)\n"
+ "sta_if = network.WLAN(network.WLAN.IF_STA); sta_if.active(True)\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"