Convert classic bluetooth temperature bytes

Discussion in 'UDOO BLU' started by vidya, Aug 20, 2018.

  1. vidya

    vidya New Member

    Joined:
    Aug 20, 2018
    Messages:
    1
    Likes Received:
    0
    I have integrated a health monitor with my Android Bluetooth(classic) app and receiving 2 bytes of data for temperature . I have recorded the actual temperature against the 2 bytes of data. Please let me know how to convert the 2 bytes to get temperature in degree centigrade. Here are some readings:-

    1. 36deg C (93, 78)
    2 35.8 deg C ( 74, 80)
    3.36.2 deg C (112, -112)
    4. 36.1 deg C ( 99, -17)
    5. 36.1 deg C (106, 115)
    6.36.0 deg C (96,13)
    7.36.1 deg C (106, 115)
    8. 36.1 deg C ( 105, -111)
    9 36.1 deg C (101, 50)
    10 36.2 deg C (109, -16)
    I have searched the net extensively but couldn't get a proper conversion logic which will satisfy the above mentioned readings. Hope someone can make out the conversion logic

    Thanks in advance,
    Vidya
     

Share This Page