The Water Leak Sensor will generate events when water (or another liquid) is present, and then give a value representing the relative measurement of the resistance between the probes of the sensor. The Water Leak Sensor uses that resistance to determine if water (or another liquid) is present.
Byte 0: 7-4 |
Byte 0: 3-0 |
Byte 1 |
Byte 2
|
Byte 3 |
Protocol version
(4 bits) |
Counter
(4 bits)
|
Message Type Code
(0x08) |
Water Event
(0x00 in the example below) |
Relative Measurement
(0x80 in the example below)
|
Protocol Definition
First 4 bits are defined by Radio Bridge for the protocol
Next 4 bits are a counter that goes from 0 to F (Hex) and repeats
Message Type
0x08 represents the Water Leak Sensor Message Type
Water Event
Byte 2 Description
0x00 Water or liquid present
0x01 Water or liquid not present
Relative Measurement
0x00 – 0xFF represents the resistance between the sensor probes (0-255)
Example of Water Leak Event Message
10 08 00 80
1 Protocol Version (currently always 0x1)
0 Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
08 Message Type Code (Water Leak Event = 0x08)
00 Water Event (Water Event = 0x00 which means “water or liquid is present”)
80 Relative Measurement (Relative Measurement is = 0x80 = 128)
The Radio Bridge Console will generate the following output for this message:
Water
Event: Water or liquid present
Relative measurement: 128