健康的中间温度Thermometer

2 posts / 0 new
Last post
z20121202038
Offline
Last seen:3 years 11 months ago
Joined:2016-03-30 12:51
健康的中间温度Thermometer

hi,
A question about the intermediate temperature in the Health Thermometer.
I just can not understand the role of the intermediate temperature in the Health Thermometer. Is it necessary? Is it the temperature before the Health Thermometer is stable?

Then I don't understand a " value |= 0xFE000000;" must be done before send the temperature.
void app_htpt_temp_send(void)
{
struct prf_date_time timestamp;

//Allocate the message
struct htpt_temp_send_req * req = KE_MSG_ALLOC(HTPT_TEMP_SEND_REQ,
TASK_HTPT, TASK_APP_HT,
htpt_temp_send_req);

int32_t value = (int32_t)(app_ht_env.temp_value);
value |= 0xFE000000;

Thanks.

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi z2012122038,

Hi z2012122038,

The profile is based on the standard Health Thermometer of the BT SIG. You should be able to choose what are the characteristics that your service wants to include during the creation of the database. It looks like the value |=0xFE000000 is needed in order for the client to interpret the value correctly, just place the temperature value and the client will convert it to appropriate value with two decimal digits accurancy.

Thanks MT_dialog

Topic locked