2JCIE-BL01-P1 Environment Sensor (PCB Type) User’s Manual (A280)
14
2.1.6
Event flag
(Characteristics UUID: 0x3006)
The state of occurrence of various events is represented by a bit field for each sensor.
Table 13. Event flag format
Byte
Field
Format
Contents
0
Temperature
UInt8
Bit 7-6 : RFU
Bit 5 : Simple threshold [lower limit]
Bit 4 : Simple threshold [upper limit]
Bit 3 : Changing trend [decline/term]
Bit 2 : Changing trend [rise/term]
Bit 1 : Changing trend [decline/previous]
Bit 0 : Changing trend [rise/previous]
1
Relative Humidity
UInt8
2
Light
UInt8
3
UV Index
UInt8
4
Barometric Pressure
UInt8
5
Sound noise
UInt8
6
Discomfort Index
UInt8
7
Heatstroke risk factor
UInt8
8
Other events
UInt8
Bit 7-1 : RFU
Bit 0 : Low supply voltage
*
Simple threshold
:
The state where the latest acquisition data exceeds the set threshold.
*
Changing trend
[term]
:
The state in which there is at least one difference equal to or greater than set threshold
between the latest data and the predetermined number of past data.
[previous]
:
The stat in which the difference between the latest data and the previous data is
equal to or greater than the set threshold.
Figure 3 Event detection
Simple Thres