summaryrefslogtreecommitdiff
path: root/ports/esp32/help.c
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-05 11:18:37 +1100
committerDamien George <damien@micropython.org>2024-11-08 10:11:03 +1100
commit285e1d0b80d821ba910249e8804697ec1739bac7 (patch)
treea7d456061c670a2e6667bc55e18767e342e4eb90 /ports/esp32/help.c
parent48f96e96605c020a646adfc2d06ee0db9b87fbe8 (diff)
esp32: Use the recommended network.WLAN.IF_[AP|STA] constants.
Removes the deprecated network.[AP|STA]_IF form from the esp32 port This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
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"