How do I decode a Tilt event?

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 amount (report on change).

Tilt Event Message: 0x0A
Byte         Description
0                 Tilt Event Payload
1                 Tilt Angle from Vertical Axis


Tilt Event Payload Definitions
Event Payload Description
0x00         Sensor transitioned to Vertical (across vertical threshold)
0x01         Sensor transitioned to Horizontal (across horizontal threshold)
0x02         Report on change toward Vertical (change exceeds vertical amount)
0x03         Report on change toward horizontal (change exceeds horizontal amount)

Example of Tilt Event Message:

1 0 0A 01 53

1                         Protocol Version (currently always 0x1)
0                         Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
0A                         Message Type Code (Tilt Event = 0x0A)
01                         Event (Sensor has transitioned to horizontal = 0x01)
53                         Current Tilt Angle from vertical axis (83 degrees = 0x53)

The RadioBridge Console will generate the following output for this message:

Sensor transitioned to horizontal
Tilt angle from vertical axis: 83 degrees
    • Related Articles

    • How do I decode a Door/Window event?

      The Door/Window Sensor will generate events according to the proximity of the included wall-mounted magnet. Door/Window Event Message: 0x03       Byte                        Description       0                              Presence of magnet (closed ...
    • How do I decode an Air Temperature and Humidity event?

      The Air Temperature and Humidity Sensor will generate events when the environment changes to exceed set thresholds or on a periodic basis. Air Temperature and Humidity Event Message: 0x0D       Byte                        Description       0          ...
    • How do I decode a sensor's Tamper Event message?

      The sensor will send a message when the tamper switch has been either opened or closed through either an enclosure tamper or a wall mount tamper. Tamper Event Message: 0x02       Bytes            Description       0                   Tamper Switch ...
    • 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 sensor's Supervisory Message?

      The wireless sensors will send a periodic supervisory message so that a backend system can verify that the device is still alive and to report error conditions.  The supervisory message also contains a payload that contains the status (current) of ...