Skip to main content

MQTT message example

This page contains an example of a message received in MQTT:

{
"channels": [ -- Array of device channels
{
"activated_at": 1718110117754, -- Activation date
"channel": 0, -- Channel number
"unit": "m³", -- Unit
"raw_offset": 0, -- Pulse count that the device has already registered in its entire life, since its first activation
"device_offset": 10420.767, -- Device pulse count at the time of activation
"device_pulse_factor": 0.01, -- Device pulse factor
"current_reading_raw": 0, --
"last_reading": 45389, -- Reading
"name": "RESIDENCIAL GROUP LINK 123", -- Device name
"read_at": 1718810927083, -- Timestamp of the reading date
"remote_id": "ABCDE12345", -- Identification defined at the device activation, used for client-side mapping
"alerts": [] -- Array of alerts ('MAX_FLOW', 'REVERSE_FLOW', 'MAGNETIC_FRAUDULENCE', 'LEAKAGE', 'CALIBRATING', 'CAR_PLUGGED', 'WIRE_CUTTING', 'OPEN_DOOR', 'OUT_OF_RANGE', 'VIOLATION')
}
],
"device_id": 1234567890, -- Unique device identification
"last_seen": 1718810927083, -- Timestamp of the last device visualization
"is_pre_activation": false,
"is_draft": false,
"ss_activated": false,
"ss_activated_delta_seconds": null,
"ss_activation_failed": null,
"meta": {
"organizational_unit": "", --
"macromicro_measurement": "", -- Macro/micro measurement scale
"device_measurement_category": "water", -- Reading category: water/gas
"latitude": 37.241932, -- Device latitude
"longitude": -115.8182768, -- Device longitude
"display_address": "Rua Group Link, 1 - Group Link" -- Device address
},
"mqtt_extra": {
"cfray": "xxxxxxxxxxxx", -- cfray identification
"serverTime": 1718812081147 -- Date and time at GL servers
}
}