added setup notes for access point
This commit is contained in:
parent
254a4e25ae
commit
1b2a8368e1
|
@ -9,12 +9,20 @@ Setting up webrepl:
|
||||||
>>> import webrepl_setup
|
>>> import webrepl_setup
|
||||||
-> enable, set password and reboot
|
-> enable, set password and reboot
|
||||||
|
|
||||||
Connect to wifi:
|
Connect to local wifi:
|
||||||
>>> import network
|
>>> import network
|
||||||
>>> sta_if = network.WLAN(network.STA_IF)
|
>>> sta_if = network.WLAN(network.STA_IF)
|
||||||
>>> sta_if.active(True)
|
>>> sta_if.active(True)
|
||||||
>>> sta_if.connect("<SSID>", "<PW>")
|
>>> sta_if.connect("<SSID>", "<PW>")
|
||||||
>>> sta_if.ifconfig() # this prints your IP
|
>>> sta_if.ifconfig() # this prints the IP
|
||||||
|
|
||||||
|
Use access point to connect:
|
||||||
|
>>> import network
|
||||||
|
>>> ap_if = network.WLAN(network.AP_IF)
|
||||||
|
>>> ap_if.active(True)
|
||||||
|
>>> ap_if.ifconfig() # this prints the IP
|
||||||
|
|
||||||
|
Default passwort for the access point: micropythoN
|
||||||
|
|
||||||
Connect via online Webrepl:
|
Connect via online Webrepl:
|
||||||
-> http://micropython.org/webrepl
|
-> http://micropython.org/webrepl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user