1 Star 0 Fork 4

feiman/micropython-dht11-iot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.py 406 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rddapi 提交于 2018-02-21 23:26 +08:00 . add src file
import network
sta_if = network.WLAN(network.STA_IF)
ap_if = network.WLAN(network.AP_IF)
ap_if.active(False)
sta_if.active(True)
sta_if.connect('Snow&John', '1wdv5yjH')
import usocket
import struct
# addr=usocket.getaddrinfo()
addr=("",5683)
s=usocket.socket(usocket.AF_INET,usocket.SOCK_DGRAM)
s.bind(addr)
while True:
data,addr = s.recv(1024)
s.close()
print(struct.unpack(data))
#
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/feiman8888/micropython-dht11-iot.git
git@gitee.com:feiman8888/micropython-dht11-iot.git
feiman8888
micropython-dht11-iot
micropython-dht11-iot
master

搜索帮助