Sphensor
–
User manual
LSI LASTEM SRL
INSTUM_04291
Pag. 30 / 32
•
The
channel_index
field contains the zero-based index of the channel of the measurement cell that
generated the measurement.
•
The
result
field contains the status of the measure:
o
ok
: correctly read measure
o
timeout
: the item did not reply within the time allowed
o
error
: the sensor responded with an error message
•
The
value
field contains the floating point value of the corresponding measure. In case the result field
is different from ok, the value of this field should not be considered.
The following table summarizes the
sensor_type/channel_index
pairs that can be received from the sensor:
sensor_type
channel_index
name
sht3x
0
Air temperature
sht3x
1
Relative humidity
ms5607
0
Cell temperature
ms5607
1
Atm. pressure
opt3001_0
0
Lux 1
opt3001_1
0
Lux 2
opt3001_2
0
Lux 3
opt3001_3
0
Lux 4
opt3001_4
0
Lux 5
adc_uva
1
UVA
9.2
Diagnostics snapshots
For diagnostic purposes you can use the topic:
sphensor/<seriale_border_router>/<seriale_sensore>/diagnostic
Here is an example of a message received:
{
"error_rate": 0.
"uptime": "3:28:59",
"memory_used": 0.
"radio":
{
"rloc": "016C",
"parent_rloc": "006C",
"in_rssi": -50.
"tx_power": 0.
"in_quality": 3,
"out_quality": 3,
"out_rssi": -50
},
"battery": 255
}