summaryrefslogtreecommitdiffstatshomepage
path: root/docs/reference
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-05 11:17:32 +1100
committerDamien George <damien@micropython.org>2024-11-08 10:11:03 +1100
commit48f96e96605c020a646adfc2d06ee0db9b87fbe8 (patch)
treea46152468091583cb0f5bcc710b3357b99963af2 /docs/reference
parentdf6b40a87fe3ddcb37cde488ba1a2060625ab737 (diff)
downloadmicropython-48f96e96605c020a646adfc2d06ee0db9b87fbe8.tar.gz
micropython-48f96e96605c020a646adfc2d06ee0db9b87fbe8.zip
docs: Specify the recommended network.WLAN.IF_[AP|STA] constants.
Removes the deprecated network.[AP|STA]_IF form from the docs. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/mpremote.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/reference/mpremote.rst b/docs/reference/mpremote.rst
index 4d86f0080b..b47ec76c98 100644
--- a/docs/reference/mpremote.rst
+++ b/docs/reference/mpremote.rst
@@ -477,7 +477,7 @@ An example ``config.py`` might look like:
""",], # Print out nearby WiFi networks.
"wl_ipconfig": [
"exec",
- "import network; sta_if = network.WLAN(network.STA_IF); print(sta_if.ipconfig('addr4'))",
+ "import network; sta_if = network.WLAN(network.WLAN.IF_STA); print(sta_if.ipconfig('addr4'))",
""",], # Print ip address of station interface.
"test": ["mount", ".", "exec", "import test"], # Mount current directory and run test.py.
"demo": ["run", "path/to/demo.py"], # Execute demo.py on the device.