ble_svc_htp_defs variable
Syntax
static const struct ble_gatt_svc_def ble_svc_htp_defs[] = {
{
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_UUID16),
.characteristics = (struct ble_gatt_chr_def[])
{ {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_CHR_UUID16_TEMP_MEASUREMENT),
.access_cb = ble_svc_htp_access,
.val_handle = &ble_svc_htp_temp_measurement_val_handle,
.flags = BLE_GATT_CHR_F_INDICATE,
}, {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_CHR_UUID16_TEMP_TYPE),
.access_cb = ble_svc_htp_access,
.val_handle = &ble_svc_htp_temp_type_val_handle,
.flags = BLE_GATT_CHR_F_READ,
}, {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_CHR_UUID16_INTERMEDIATE_TEMP),
.access_cb = ble_svc_htp_access,
.val_handle = &ble_svc_htp_intr_temp_val_handle,
.flags = BLE_GATT_CHR_F_NOTIFY,
}, {
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_CHR_UUID16_MEASUREMENT_ITVL),
.access_cb = ble_svc_htp_access,
.val_handle = &ble_svc_htp_msr_itvl_val_handle,
.flags = BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_INDICATE,
.descriptors = (struct ble_gatt_dsc_def[])
{
{
.uuid = BLE_UUID16_DECLARE(BLE_SVC_HTP_DSC_UUID16_VALID_RANGE),
.att_flags = BLE_ATT_F_READ | BLE_ATT_F_WRITE,
.access_cb = ble_svc_htp_access,
}, {
0,
}
},
}, {
0,
}
},
},
{
0,
},
};