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:
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