How do I decode a Single Push Button event?

How do I decode a Single Push Button event?

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



    • Related Articles

    • How do I decode a Dual Push Button event?

      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 ...
    • How do I encode a Configuration Downlink for a Single Push Button Sensor?

      NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary. See User Manual at https://www.multitech.com/brands/reveal-wireless-push-buttons for more information. Single Push Button Sensor Configuration ...
    • Why do I see two messages when I press the button on a Push-Button Sensor?

      The Push Button Sensors send event messages for both the button press and button release actions. It is possible to configure the sensor so that either press or release messages (or both) are disabled. For more information on Push Button Sensors ...
    • How do I decode a sensor's Reset Message?

      The Reset Message is sent to the Cloud every time that the Sensor is Reset. Reset Message: 0x00       Device has Reset. The cause of reset is represented in the 5-byte reset code payload.       Bytes           Description       0                  ...
    • How do I decode a Tilt event?

      The Tilt Sensor will generate events when the orientation of the device transitions its vertical-horizontal axis as determined by configurable threshold angles (state transition) or when the vertical-horizontal orientation changes by a configurable ...