How do I decode a Door/Window event?

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 or open)

Door/Window Event Payload Definitions
      Event Payload      Description
      0x00      Sensor is “closed” meaning that the magnet is present
      0x01                       Sensor is “open” meaning that no magnet is present

Example of Door/Window Event Message:

      1 0 03 01

                 Protocol Version (currently always 0x1)
      0     Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
      03     Message Type Code (Door/Window Event = 0x03)
      01     Event (Door Opened = 0x01)

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

      Door Opened
    • Related Articles

    • 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 ...
    • 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                  ...
    • Why did my sensor come with a magnet?

      Nearly all RadioBridge Sensors come packaged with a mountable magnet. For Door/Window Sensors the magnet and sensor can be mounted to the door (or window sash, enclosure lid, etc.)  and frame.  When the door is opened and the sensor and magnet become ...