import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect('wifi name', 'wifi password')
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
import requests
response = requests.get('https://www.baidu.com')
print(response.text)
ESP32联网的MicroPython代码
于 2024-10-20 15:47:29 首次发布
543

被折叠的 条评论
为什么被折叠?



