MQTT API for integration with ThingsBoard IoT Platform (https://thingsboard.io/). This API manages the communication of remote devices (SV230, SV012, SR, SB, SC) with the ThingsBoard platform. Based on MQTT Gateway API (https://thingsboard.io/docs/reference/gateway-mqtt-api/).
ThingsBoard device access token is used as MQTT username.
Available only on servers:
Accepts the following message:
{
"ts": 1730000000123,
"id": "0000",
"type": "SLG",
"name": "Gateway Main",
"groups": [
0,
2
]
}
Available only on servers:
Accepts the following message:
{
"ts": 1730000000999,
"connectionState": "online"
}
Accepts the following message:
{
"device": "04AF",
"type": "SV230"
}
Available only on servers:
Accepts the following message:
{
"device": "04AF"
}
Available only on servers:
Accepts the following message:
{
"04AF": {
"ts": 1730000000200,
"type": "SV230",
"name": "Siren-04AF",
"groups": [
0,
1
]
}
}
Available only on servers:
Accepts the following message:
{
"04AF": [
{
"ts": 1730000000450,
"values": {
"connectionState": "online",
"hopCount": 1,
"nearbyLqi": 210,
"batteryLevel": 97
}
}
]
}
Available only on servers:
Accepts the following message:
{
"method": "refreshDevices",
"params": {}
}
{
"method": "trigAlertOnce",
"params": {
"source": {
"kind": "device",
"id": "1A2B"
},
"scope": {
"type": "group",
"groupId": 0
},
"priority": "high",
"signaling": "combined",
"audible": {
"sounds": [
{
"bank": "standard",
"fileId": 0,
"attenuationInDB": 0,
"repeats": 1
}
],
"sequenceRepeats": 1
}
}
}
Available only on servers:
Accepts the following message:
{
"result": "success",
"msg": ""
}
{
"result": "invalidParams",
"msg": "missing key: scope"
}
Optional event timestamp in milliseconds since epoch (uint64).
Parameters for refreshDevices method (typically {}).