The Single Push Button Sensor will generate events when the button is pressed, released and or held-down for a configurable amount of time.
Byte 0: 7-4 |
Byte 0: 3-0 |
Byte 1 |
Byte 2 |
Byte 3 |
Protocol version (4 bits)
|
Counter (4 bits)
|
Message Type Code (0x06)
|
Button ID (0x03)
|
Event
|
Protocol Definition
The first 4 bits are defined by Radio Bridge for the protocol
The next 4 bits are a counter that goes from 0 to F
(Hex) and repeats
Message Type
0x06 represents the push button event type
Button ID
0x03 represents the button ID in a single push button sensor
Event
This byte represents the button event
Event Payload Description
0x00 Pressed
0x01 Released
0x02 Button held
Example of Single Push Button Event Message
10 06 03 02
1 Protocol Version (currently always 0x1)
0 Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
06 Message Type Code (Button Event = 0x06)
03 Button ID (Button ID = 0x03)
02 Event (Button was held = 0x02)
The Radio Bridge Console will generate the following output for this message:
Button held