Sensor Telemetry is output from the ncd-red-wireless gateway node in the following format:
{
"nodeId": 0,
"firmware": 1,
"battery": "3.29",
"battery_percent": "99.64",
"counter": 14,
"sensor_type": 46,
"sensor_data": {
"input_1": 0
},
"sensor_name": "Motion Detection Sensor",
"type": "sensor_data",
"addr": "00:13:a2:00:41:db:2a:d1",
"received": 1664296275775,
"original": {
"mac": "00:13:a2:00:41:db:2a:d1",
"receive_options": {
"ack": 0,
"broadcast": 0,
"type": ""
},
"data": [
127,
0,
1,
3,
255,
14,
0,
46,
0,
0,
0,
0,
0
],
"rssi": {},
"type": "receive_packet"
},
"rssi": 40
}
Variable definitions:
nodeID: User configurable unique identifier for this sensor. Valid range 0-255
firmware: Version of firmware running on device. Valid range 0-255
battery: Voltage of on board battery. 3.3VDC max.
battery_percent: Percentage of Battery life remaining.
counter: Number of transmissions since power up. Valid range 0-255. This counter will roll over to 0 once 255 is exceeded.
sensor_type: Sensor Type identifier. Valid range: 1-65535. Look up table.
sensor_data: Data unique to this type of sensor. In this case input_1 indicates if the sensor has detected motion or not.
sensor_name: User readable type of sensor.
type: identifier for the type of data contained in this JSON object.
addr: Unique Serial identifier for this sensor.
received: Timestamp for when this telemetry was received by ncd-red-wirless parsing library.
origional{
mac: Unique Serial identifier for this sensor.
ack: Whether or not acknowledgment was requested by sensor sending this transmission(see Digi)
broadcast: Whether or not this message was broadcast. If not then it was targeted(see Digi)
type: not used
data: raw Digi Mesh packet received.
rssi: not used
type: Type of Digi Mesh packet this telemetry originated from(see Digi)
}
rssi: Wireless signal strength from sensor to gateway.