added setup notes for access point

simple_control
Simon Pirkelmann 2019-04-13 14:26:12 +02:00
parent 254a4e25ae
commit 1b2a8368e1
1 changed files with 10 additions and 2 deletions

View File

@ -9,12 +9,20 @@ Setting up webrepl:
>>> import webrepl_setup
-> enable, set password and reboot
Connect to wifi:
Connect to local wifi:
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.active(True)
>>> 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:
-> http://micropython.org/webrepl