wifi相关

  1. import network
  2. wlan = network.WLAN(network.STA_IF)
  3. wlan.active(True)
  4. wlan.isconnected()
  5. wlan.connect('Noir', 'pa5sw0rd')
  6. wlan.ifconfig()
  7. wlan.config('mac')
  8. wlan.scan()
  9. ap = network.WLAN(network.AP_IF) # create access-point interface
  10. ap.active(True) # activate the interface
  11. ap.config(essid='ESP-AP') # set the ESSID of the access point

https://zhuanlan.zhihu.com/p/82366556

webrepl

  1. # first step to setup
  2. import webrepl_setup

urequests