Raspberrypi
半瓶可乐@
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mqtt授权、连接失败
安装:sudo apt-get install mosquitto sudo apt-get install mosquitto-clients问题:解决途径:sudo vim /etc/mosquitto/mosquitto.conf代码:# Place your local configuration in /etc/mosquitto/conf.d/## A full description of the configuration file is at# /usr/原创 2021-12-07 17:53:08 · 2021 阅读 · 0 评论 -
虚拟设备执行go脚本
虚拟设备脚本字段总结1.$hw/events/device/dht11-sensor-1/twin/update{ "event_id": "","timestamp": 0,"twin": { "temperature": {"actual":{ "value": "%s"}, "metadata": {"type": "Updated" }}, "humidity": {"actual" : { "value": "%s" },"metadata": {"type": "U原创 2021-11-25 10:36:00 · 1038 阅读 · 0 评论 -
使用mqttfx向broker发送消息,云端获取资源
edge节点上下载sqlite3sudo apt install sqlite3连接edgecore数据库sqlite /var/lib/kubeedge/edgecore.db其他语句.exit //退出sqlite3.mode column //数据有标题select *from device //注册完设备后,查询设备select*from device_twin //发布完数据后可查询发布数据! ----- /var/lib/kubeedge/edgec.原创 2021-11-14 22:19:36 · 463 阅读 · 0 评论 -
raspberrypi通过mqtt协议将DHT22数据发送给broker
确保Raspberry Pi上有最新的更新sudo apt-get update安装python 3-dev和python3-pip使用这两个包来与湿度传感器进行交互sudo apt-get install python3-dev python3-pip安装最新版本的setuptools、wheel和pip python包。sudo python3 -m pip install --upgrade pip setuptools wheel 将DHT库安装到Raspberry .原创 2021-10-25 01:47:21 · 4885 阅读 · 0 评论 -
树莓派4bDHT22读Adafruit_DHT报错 can not import Beaglebone_Black_Driver的解决办法
树莓派4bDHT22读Adafruit_DHT报错 can not import Beaglebone_Black_Driver的解决办法尝试走进安装文件夹:cd usr/local/lib/python3.7/site-packages/Adafruit_DHTls编辑platform_detect.pyvim platform_detect.py在def pi_version()下面添加4B信息进来: elif match.group(1) == 'BCM2711':原创 2021-10-18 16:38:47 · 1087 阅读 · 0 评论
分享