Go to the documentation of this file.
65 #include "custom_config.h"
74 #define HTS_CONNECTION_MAX 10
75 #define HTS_TEM_MEAS_MAX_LEN 20
76 #define HTS_TEM_TYPE_MAX_LEN 1
77 #define HTS_INTM_TEM_MAX_LEN 20
78 #define HTS_MEAS_INTERVAL_MAX_LEN 2
79 #define HTS_MEAS_INTV_DFLT_MIN 2
80 #define HTS_MEAS_INTV_DFLT_MAX 10
87 #define HTS_CHAR_MANDATORY 0x000f
88 #define HTS_CHAR_TEM_TYPE_SUP 0x003f
89 #define HTS_CHAR_INTM_TEM_SUP 0x01c0
90 #define HTS_CHAR_MEAS_INTERVAL_SUP 0x1e00
91 #define HTS_CHAR_FULL 0x1fff
sdk_err_t hts_service_init(hts_init_t *p_hts_init)
Initialize a Health Thermometer Service instance and add in the DB.
@ HTS_TEMPERATURE_FAHRENHEIT
Health Thermometer Service event.
@ HTS_EVT_READ_CHARACTERISTIC
@ HTS_EVT_TEM_MEAS_INDICATION_ENABLE
@ HTS_EVT_INTM_TEM_NOTIFICATION_DISABLE
@ HTS_MEAS_FLAG_TEM_UINTS_BIT
hts_temp_unit_t
Health Thermometer temperature unit,.
uint16_t temp_original_value
@ HTS_READ_CHAR_TEMP_TYPE
@ HTS_MEAS_FLAG_TEM_TYPE_BIT
@ HTS_READ_CHAR_MEAS_INTL
@ HTS_MEAS_FLAG_TIME_STAMP_BIT
sdk_err_t hts_measurement_send(uint8_t conn_idx, hts_meas_val_t *p_meas)
Send temperature measurement if indication or notification has been enabled.
hts_temp_meas_loc_t temp_type
prf_date_time_t hts_date_time_t
Health Thermometer Service date time type.
uint16_t min_meas_interval_sup
@ HTS_EVT_TEM_MEAS_INDICATION_DISABLE
@ HTS_TEMPERATURE_CELCIUS
ieee_float32_t temp_convert_value
hts_read_characteristic_t
The parameters for HTS_EVT_READ_CHARACTERISTIC.
hts_date_time_t time_stamp
@ HTS_EVT_MEAS_INTREVAL_INDICATION_ENABLE
Health Thermometer Service init stucture. This contains all option and data needed for initialization...
void(* hts_evt_handler_t)(hts_evt_t *p_evt)
Health Thermometer Service event handler type.
@ HTS_EVT_INTM_TEM_NOTIFICATION_ENABLE
@ HTS_EVT_MEAS_INTERVAL_INDICATION_DISABLE
uint16_t sdk_err_t
SDK API result type.
SFLOAT format (IEEE-11073 32-bit FLOAT, defined as a 32-bit vlue with 24-bit mantissa and 8-bit expon...
hts_evt_handler_t evt_handler
The date and time structure. The packed size is 7 bytes.
@ HTS_TEMPERATURE_INTERMEDIATE
@ HTS_EVT_MEAS_INTERVAL_UPDATE
hts_evt_type_t
Health Thermometer Service event type.
hts_flag_bit_t
Health Thermometer Measurement flag bits.
uint16_t max_meas_interval_sup
hts_temp_meas_loc_t temp_type
Health Theromometer Measurement Character value structure.
Profile/Service Utilities API.
hts_temp_unit_t temperature_units
sdk_err_t hts_measurement_interval_send(uint8_t conn_idx)
Send temperature measurement interval if indication has been enabled.
hts_temp_meas_type_t
Health Thermometer temperature measurement type.
hts_temp_meas_type_t temp_meas_type
hts_temp_meas_loc_t
Temperature Type measurement locations.