ThingsBoard IoT Gateway MQTT 连接器配置 第三部分

这篇文章介绍 网关中使用字节转换器和自定义转换器, 如果需要接收字节作为响应时推荐使用。

字节转换器 bytes

字节转换器是默认的转换器,它从代理传入的消息中查找设备名称、设备类型、属性和遥测信息,遵循本小节描述的规则:

参数 默认值 描述
type bytes 向连接器提供信息,指定用于从主题转换数据的默认转换器。
deviceNameExpression [0:4] 用于在传入消息中查找设备名称的表达式。
deviceTypeExpression [1:3] 用于在传入消息中查找设备类型的表达式。
timeout 60000 触发"设备断开连接"事件的超时时间。
attributes: 这个子部分包含传入消息的参数,将其解释为设备的属性。
… type raw 当前属性的传入数据类型。
… key temp 属性名称,发送给ThingsBoard实例
… value [:] This subsection contains parameters of the incoming message, to be interpreted as telemetry for the device.
timeseries: <

猜你喜欢

转载自blog.csdn.net/github_35631540/article/details/131461046