赞
踩
# boot.py try: import usocket as socket except: import socket from machine import Pin import network led = Pin(2, Pin.OUT) led.value(1) # 用来绑定端口 selfadd = '0' # 手机开热点的热点名称,或路由器wifi名 essid = '' # 热点的密码,或路由器wifi密码 password = '' # 该函数是连手机或者路由器的wifi def do_wifi_connet(): # 创建站点接口 wlan = network.WLAN(network.STA_IF) # 开启网络接口 wlan.active
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。