From 1b2a8368e114f42edf5d490084fee4e2770e26e5 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Sat, 13 Apr 2019 14:26:12 +0200 Subject: [PATCH] added setup notes for access point --- micropython_firmware/setup_notes.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/micropython_firmware/setup_notes.txt b/micropython_firmware/setup_notes.txt index 91ca944..71ae046 100644 --- a/micropython_firmware/setup_notes.txt +++ b/micropython_firmware/setup_notes.txt @@ -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("", "") - >>> 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