Page
75 of 76
King Pigeon Communication Co., Ltd.
V1.0
www.iot-solution.com
Modbus to MQTT IoT Gateway
-BL101
2)
Numeric Data: character is "value", followed by actual value
//Alarm, Recover mark, character is "state", followed by "alarm" or
"recovery"(alarm represents alarm data, recovery represents alarm recovery data)
//Time mark: character is "time", followed by actually data uploading timestamp
//Time mark, character is "addtime", followed by "gateway time"
//Retransmission mark: character is "retransmit", followed by "enable"
Offline collected data will be temporarily saved in gateway device. Once network
resmues, the data will be retransmitted. Use “retransmit” mark for historical data
(MQTT Data Retransmission must be enabled in configuration software)
(2) Valid Load Data Format in device Subscribing messages
Subscribe Topic: Serial (Subscribe topic set in configuration software)
(King Pigeon cloud message publishing topic is “serial number/sensor ID”, thus
wildcard “/+” must be added for device Subscribing Topic so that cloud can publishing
data for controlling)
{
"sensorDatas":
[
{
"sensorsId": 211267, // cloud sensor ID
"switcher":1, //Data Type and Value
"flag":"REG001" //Read-Write Mark
}
],
"down":"down" //Cloud downlink message mark
}
Note:
//cloud sensor ID: character is "sensorsID", followed by ID (automatically
generated by cloud. Not necessary if it’s self-built cloud)
//Data Type and Value:
1) Boolean Data: character is "switcher", followed by "0" or "1"
(0 represents open, 1 represents close)
2) Numeric Data: character is "value", followed by "actual value"
//Read-Write Mark: character is "flag", followed by "datapoint MQTT flag"
//Cloud Downlink Message Mark: character is "down", followed by "down",
representing cloud downlink data.