Dragino-mqtt protocol

Dragino gateway MQTT communication protocol.
flespi parses the Dragino-mqtt protocol messages into a JSON object with the fields listed below in the Parameters tab.

dragino-mqtt channel works as a separate MQTT broker. In the channel card you may see MQTT broker URI to connect your devices and optionally configure authentication and enable TLS. MQTT client id can be any, as devices are identified by the first 8 bytes in the payload.

Different device types will require different topics to publish telemetry to. Currently supported devices and topics correspondence:


If you need to connect unlisted hardware that works over Dragino MQTT protocol - contact flespi team.

ain
number
volts
Voltage on the analog input
HEX format Payload(Type=0)
battery.voltage
number
volts
Internal battery voltage
HEX format Payload(Type=0)
channel.id
number
ID of channel that received a message
device.id
number
ID of device that received a message
device.name
string
Name of device that received a message
device.type.id
number
ID of device type of device that received a message
din
number
Digital inputs bitmask
HEX format Payload(Type=0)
gsm.signal.level
number
percentage
Mobile network (GSM, 3G, 4G, LTE, 5G, ...) signal strength level
HEX format Payload(Type=0)
ident
string
Device unique identifier like serial number, IMEI, etc
onewire.sensor.temperature
number
celsius
External 1-Wire temperature sensor value
HEX format Payload(Type=0)
operating.mode.enum
number
Protocol-specific device operating mode
HEX format Payload(Type=0)
payload.text
string
Text Payload received from device
HEX format Payload(Type=0)
peer
string
IP:port from which device connecting to the channel
position.latitude
number
degrees
Latitude coordinate value
HEX format Payload(Type=0)
position.longitude
number
degrees
Longitude coordinate value
HEX format Payload(Type=0)
position.timestamp
number
seconds
Timestamp when coordinates where calculated
HEX format Payload(Type=0)
product.model.enum
number
Product model
HEX format Payload(Type=0)
protocol.id
number
ID of protocol
protocol.version
string
Protocol version string
HEX format Payload(Type=0)
report.code
string
Report code
HEX format Payload(Type=0)
sensor.humidity
number
percentage
Humidity sensor value, i.e. relative air humidity level
HEX format Payload(Type=0)
sensor.temperature
number
celsius
Temperature sensor value
HEX format Payload(Type=0)
server.timestamp
number
seconds
Timestamp when server received a message
timestamp
number
seconds
Message timestamp
HEX format Payload(Type=0)
Properties
Custom Command
custom
Send custom command to device