edegeXFoundry 2.0 搭建教程

简介

https://note.youdao.com/yws/public/resource/800c41989a24b0d1599425b63bb2c95c/xmlnote/F15F116D1CE04F199BA037DCBE82818E/7670

irland版本

edgex foundry 主要分为1.x版本和2.x版本。版本接口和架构差异较大

步骤

1.edgex-go

仓库地址:

GitHub - edgexfoundry/edgex-go: EdgeX Golang Services Monorepo | Owner: Core/Support WG

编译:

make build

执行后会在cmd目录下生成对应的可执行程序。bin目录从2.0版本以后没有服务启动脚本edgex-launch.sh,可以把早期版本复制过来即可。

每个服务下有res文件夹,里面有配置文件configuration.toml

2.edgex-ui-go

可以通过 configuration.toml配置系统,也可以可视化配置系统。可视化需要启动ui服务。服务地址:http://localhost:4000/#/dashboard

仓库地址:

GitHub - edgexfoundry/edgex-ui-go: Owner: Core/Support WG

编译:

make build

运行:

make run

3.device-mqtt-go

https://note.youdao.com/yws/public/resource/800c41989a24b0d1599425b63bb2c95c/xmlnote/07BF3C75CCF84ACDBAA764056BD66652/7678

仓库地址:

GitHub - edgexfoundry/device-mqtt-go: Owner: Device WG

说明地址:

MQTT - EdgeX Foundry Documentation

https://note.youdao.com/yws/public/resource/800c41989a24b0d1599425b63bb2c95c/xmlnote/D36D7F7B35E547E6B6629A7A7C6187A9/7681

编译:

make build

运行:

export EDGEX_SECURITY_SECRET_STORE="false"

make run

4.设备mqtt模拟节点

仓库地址:

GitHub - SHILIANG17671467654/mock-device-driver

5.app demo

仓库地址:

GitHub - edgexfoundry/edgex-examples

文档介绍地址:

App Service Examples - EdgeX Foundry Documentation

编译:

make build

运行:

切换到相应目录运行

./app-service

6.资料连接:

GitHub 地址:EdgeX Foundry Project · GitHub

API接口地址

Build, Collaborate & Integrate APIs | SwaggerHub

7.常用测试接口

查询datacore收到了多少数据

http://localhost:59880/api/v2/reading/count

set接口

curl http://localhost:59882/api/v2/device/name/05scu/message -H "Content-Type:application/json" -X PUT -d '{"message":"Hello!"}'

get接口

curl http://localhost:59882/api/v2/device/name/05scu/message

A7核心板灯开关接口

echo 0 > /sys/class/leds/phycore-green/brightness

echo 1 > /sys/class/leds/phycore-green/brightness

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Eric_Xi_BJ

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值