NOTE: All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary.
Configuration Message: 0x08
Byte Description
0 Downlink Message Type (0x08 = Water Leak Sensor)
1 Enable events for Water Leak Sensor
2 Threshold of relative resistance between probes (scale 0-255)
3 Restoral Margin in units of relative resistance between probes (scale 0-255)
The downlink configuration message for the sensor contains the resistance threshold for detecting the presence of a liquid.
The payload from the event message can be used to find the relative resistance of a given liquid.
The bit definitions for the disable events field are defined below.
Enable Event Bit Definitions (Byte #1)
Bits Description
7:2 Unused
1 To Enable water present message set to: 0 = yes, 1= no
0 To Enable water not present message set to: 0 = yes, 1= no
An alert is sent when the relative measurement increases above the defined threshold. The restoral margin requires that the measurement reduces by a certain amount below the threshold before another alert is triggered. Both the threshold and restoral margin are in units of relative resistance measurements on a scale of 0-255.
Water Leak Sensor Configuration Example:
08 00 C8 0A 00 00 00 00
08 Downlink Message Type (Water Leak Sensor = 0x08)
00 Enable events for Water Leak Sensor
0x00:
Water present message event = yes
Water not present event = yes
50 Threshold of relative resistance between probes (0x50 = 80 = default)
28 Restoral Margin in units of relative resistance between probes (0x28 = 40 = default)
00 Not Used
00 Not Used
00 Not Used
00 Not Used
If the configuration is successful the sensor will respond with a Downlink Acknowledge message:
1 0 FF 02
1 Protocol Version (currently always 0x1)
0 Packet Counter, increments by 1 each message and wraps from 0xF to 0x0
FF Message Type (Downlink ACK = 0xFF)
02 Downlink Message Valid (Invalid/Undefined = 0x01, Valid = 0x02)