The Dual Push Button Sensor will generate events when the either the left button, the right button, or both buttons are pressed, released, 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 (0x01 in the example below) |
Event (0x02 in the example below)
|
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’s event type
Button ID
0x01 represents the right button’s button ID in the dual push button sensor
0x02 represents the left button’s button ID in the dual push button sensor
0x12 represents the button ID for when both the right and left buttons in the dual push button sensor are being pressed together
Event
This byte represents the button event
Event Payload Description
0x00 Pressed
0x01 Released
0x02 Button held
Example of a Single Push Button Event Message
10 06 01 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)
01 Button ID (Button ID = 0x01, which is the right button)
02 Event (Button was held = 0x02)
The Radio Bridge Console will generate the following output for this message:
Button 1 held