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                              Temperature/Humidity Event Payload
                  1                               Current temperature in degrees Celsius with sign bit
                  2                              First decimal of current temperature (0-9) in the most significant 4-bits.
                  3                              Humidity in % relative humidity (0-100%)
                  4                              First decimal of relative humidity (0-9) in the most significant 4-bits.

            Air Temperature and Humidity Event Payload Definitions
                  Event Payload      Description
                  0x00      Periodic report
                  0x01                       Temperature has risen above upper threshold
                  0x02      Temperature has fallen below lower threshold
                  0x03      Temperature report on change increase
                  0x04      Temperature report on change decrease
                  0x05      Humidity has risen above upper threshold
                  0x06      Humidity has fallen below lower threshold
                  0x07      Humidity report on change increase
                  0x08      Humidity report on change decrease

            Example of Air Temperature and Humidity Event Message:

                  1 0 0D 05 17 70 3D 80

                  1             Protocol Version (currently always 0x1)
                  0      Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
                  0D     Message Type Code (Air Temp & Humidity Event = 0x0D)
                  05     Event (Humidity has risen above upper threshold = 0x05)
                  17     Current temperature in degrees Celsius (23 = 0x17)
                  70          First decimal of current temperature (7 = 0x70)
                  3D     Humidity in % relative humidity (61 = 0x3D)
                  80     First decimal of relative humidity (8 = 0x80)

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

                  Humidity has risen above upper threshold
                  Current temperature in degrees Celsius: 23.7 
                  Humidity in % relative humidity: 61.8
            Updated: 28 Jan 2019 09:16 AM
            Helpful?  
            Help us to make this article better
            0 0