diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2022-06-04 12:32:08 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-17 21:43:44 +1000 |
commit | 6e868d47dc5dd7a90444f1173118b7d57e1e4df7 (patch) | |
tree | bd0feca01865b310085373c5caa094907dc13879 /docs/esp32 | |
parent | 82b8a2d193657f67cf7a301acc5804b946d662ad (diff) | |
download | micropython-6e868d47dc5dd7a90444f1173118b7d57e1e4df7.tar.gz micropython-6e868d47dc5dd7a90444f1173118b7d57e1e4df7.zip |
docs: Update to use new WLAN argument names for ssid/security/key.
Addresses issue #8083.
Diffstat (limited to 'docs/esp32')
-rw-r--r-- | docs/esp32/quickref.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst index 894508f4c2..3cbb673c04 100644 --- a/docs/esp32/quickref.rst +++ b/docs/esp32/quickref.rst @@ -76,12 +76,12 @@ The :mod:`network` module:: wlan.active(True) # activate the interface wlan.scan() # scan for access points wlan.isconnected() # check if the station is connected to an AP - wlan.connect('essid', 'password') # connect to an AP + wlan.connect('ssid', 'key') # connect to an AP wlan.config('mac') # get the interface's MAC address wlan.ifconfig() # get the interface's IP/netmask/gw/DNS addresses ap = network.WLAN(network.AP_IF) # create access-point interface - ap.config(essid='ESP-AP') # set the ESSID of the access point + ap.config(ssid='ESP-AP') # set the SSID of the access point ap.config(max_clients=10) # set how many clients can connect to the network ap.active(True) # activate the interface @@ -93,7 +93,7 @@ A useful function for connecting to your local WiFi network is:: wlan.active(True) if not wlan.isconnected(): print('connecting to network...') - wlan.connect('essid', 'password') + wlan.connect('ssid', 'key') while not wlan.isconnected(): pass print('network config:', wlan.ifconfig()) |