wifi相关
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.isconnected()
wlan.connect('Noir', 'pa5sw0rd')
wlan.ifconfig()
wlan.config('mac')
wlan.scan()
ap = network.WLAN(network.AP_IF) # create access-point interface
ap.active(True) # activate the interface
ap.config(essid='ESP-AP') # set the ESSID of the access point
https://zhuanlan.zhihu.com/p/82366556
webrepl
# first step to setup
import webrepl_setup