kafka转发iot数据,适用于iot-project和iot-collect无法直接TCP连接的情况,通过iot-transfer进行转发通信,目前招商适用
wuwenjun 82513417c6 日志增加offset | 2 anni fa | |
---|---|---|
.mvn | 3 anni fa | |
src | 2 anni fa | |
.gitignore | 3 anni fa | |
README.md | 3 anni fa | |
iot-transfer.yml | 3 anni fa | |
mvnw | 3 anni fa | |
mvnw.cmd | 3 anni fa | |
pom.xml | 3 anni fa |
接口描述
post请求
参数例子
{}
成功示例
hello world!
接口描述
/隔开的参数n选1
post请求
参数例子
{
"topic": "iot.edge2collect/iot.edge2control/iot.collect2edge/iot.control2edge",
"packetEntity": {
"address": "",
"projectId": "4403050019",
"type": "tcpControl/tcpCollect(边缘都到云端发送消息的时候需要指定)",
"content": {
"packetString": "3201130004;1;report;20210418000145;5864;30000;1;10101;6.06"
}
}
}
成功示例
发送数据的长度