summaryrefslogtreecommitdiff
path: root/ports/esp8266/help.c
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-05 11:19:00 +1100
committerDamien George <damien@micropython.org>2024-11-08 12:03:48 +1100
commitf5b81bee6141f925ed32d2d7968b0c90d7b41b61 (patch)
tree6917ad8d63f7ec5176ef400ccaf1d74d2f3f087d /ports/esp8266/help.c
parent285e1d0b80d821ba910249e8804697ec1739bac7 (diff)
esp8266: Use the recommended network.WLAN.IF_[AP|STA] constants.
Removes the deprecated network.[AP|STA]_IF form from the esp8266 port This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp8266/help.c')
-rw-r--r--ports/esp8266/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/help.c b/ports/esp8266/help.c
index a9cb27bad..694cd90b9 100644
--- a/ports/esp8266/help.c
+++ b/ports/esp8266/help.c
@@ -36,12 +36,12 @@ const char esp_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>\", \"<key>\") # 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 = network.WLAN(network.WLAN.IF_AP)\n"
"ap_if.config(ssid=\"<AP_NAME>\", security=network.AUTH_WPA_WPA2_PSK, key=\"<key>\")\n"
"\n"
"Control commands:\n"