This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Trouble in interpreting the temperature service data at central

I modified the HTS service to send notifications and read property at the peripheral. It notifies the simulated temperature every 1 sec in Celsius type. I tried writing HTS service at the central to receive the notifications similar to battery and HRS service. I got it working successfully but the temperature data seems to be little weird. I see that the temp at the peripheral side is actually encoded. Do I have to write some decoding function to interpret the data? I got the HTS notification data through this ble_hts_c_evt.params.hts.temp_value = p_ble_evt->evt.gattc_evt.params.hvx.data; I think I am missing few steps. I don't know whether I comply with Nordic standards.Please help me. I have attached the HTS_c for your reference.

ble_hts_c.c ble_hts_c.h

Thanks a lot for your support, Nivetha

Related