kubeedge
半瓶可乐@
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
golang 在下载依赖包的时候出现错误:dial tcp 142.251.42.241:443: i/o timeout
golang 在下载依赖包的时候出现错误:dial tcp 142.251.42.241:443: i/o timeout解决:执行命令 go env -w GOPROXY=https://goproxy.cn原创 2021-12-22 23:14:18 · 11918 阅读 · 1 评论 -
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 评论 -
安装指定版本的kubeedge
1.拉取指定版本的kubeedgegit clone -b v1.7.2 https://github.com/kubeedge/kubeedge $GOPATH/src/github.com/kubeedge/kubeedge2.获取降低版本git checkout release-1.7.2原创 2021-11-27 18:33:02 · 162 阅读 · 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 评论 -
项目导入Go中,无法同步
原因: Go代理,禁用了很多国外代理。换成可靠的国内代理Goproxy.cn解决办法:Go 1.13 及以上(推荐)打开你的终端并执行$ go env -w GO111MODULE=on$ go env -w GOPROXY=https://goproxy.cn,direct完成。macOS 或 Linux打开你的终端并执行$ export GO111MODULE=on$ export GOPROXY=https://goproxy.cn或者$ echo "export GO1.原创 2021-10-24 14:21:11 · 174 阅读 · 0 评论
分享