Differences between the sensor measurement formats (‘raw’ and ‘JSON’)
Last updated
Sensor measurements MQTT message topic structure:
RAW
<RootTopic>/<SerialNumber>/sensors/ <SensorID>/measurements/<measurement>

JSON
<RootTopic>/<SerialNumber>/sensors/ <SensorID>/JSON/measurements

Example 1 - Receive sensor measurements from all the bases if <RootTopic> consists of a single level topic
RAW: +/+/sensors/+/measurements/+
JSON: +/+/sensors/+/json/measurements
Example 2 - Receive all the sensor measurements from the base with S/N 394261000688 if <RootTopic> is set to ‘Aranet’
RAW: Aranet/394261000688/sensors/+/measurements/+
JSON: Aranet/394261000688/sensors/+/json/measurement
Example 3 - Receive measurements from the sensor with ID 100118 paired to the base with S/N 394261000688 if <RootTopic> is set to two-level topic ‘Riga/Warehouse’
RAW: Riga/Warehouse/394261000688/sensors/100118/measurements
JSON: Riga/Warehouse/394261000688/sensors/100118/json/measurements
Last updated