未验证 提交 4be14e2c 编写于 作者: 麦壳饼's avatar 麦壳饼 提交者: GitHub

Update mqtt.md

上级 6a9471cf
......@@ -159,13 +159,23 @@ v1/gateway/attributes
devices/{设备名称}/rpc/response/{方法名称}/{请求唯一标识}
```
## RawDataGateway
## RawData
在Mqtt中我们通过topic gateway/json 和 gateway/xml 来支持 RawDataGateway 解析。
## 设备透传的原始数据
注意, 通常情况下你需要 配合规则链的脚本来解析透传的原始数据, 相关视频请查看 【IoTSharp 教程第二集 规则链使用】 https://www.bilibili.com/video/BV1be4y1N74s/?share_source=copy_web&vd_source=5b4c8cb51c4e0e2e985b5927ecc05d4a
目前支持的topic如下
1. devices/{设备名称}/data/json 来处理json格式的数据
2. devices/{设备名称}/data/binary 用于处理二进制数据
第三方服务调用时我们建议通过通过 Web Api 发起, 示例如下
```sh
......@@ -191,4 +201,4 @@ curl -X 'POST' \
![设置](/img/iotsharp/kep_iotgateway.png)
![设置](/img/iotsharp/kep_iotgateway2.png)
\ No newline at end of file
![设置](/img/iotsharp/kep_iotgateway2.png)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册