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

About the function hts_measurement_encode

Hi, I have some questions about the nrf51822. I ran the ble_app_hts on on a evaluation board and use a smartphone(the os is Android, the software is MCP) to receive the data.

Descriptions: In the Ble_app_hts application, there is a ble_hts_meas_t Struct,which is used to save the Temperature data, Date data and Type data. The function hts_measurement_encode is used to encode the data of ble_hts_meas_t.The encoded data is save in the p_encoded_buffer. image description The smartphone can receive the data.

My questions are: 1 How do the smartphone know, which of those bytes means Tempaerature and which of those bytes means Date? 2 Where can i find the protocol, which can tell me which of those bytes means Temperature, which of those bytes means Data. Thank you very much.

Parents Reply Children
Related