add missing gatt descriptors

This commit is contained in:
Brian Friedkin 2019-12-10 08:38:47 -08:00 committed by bot
parent 2e7e05a79a
commit efc514fa0a
2 changed files with 19 additions and 7 deletions

View file

@ -75,6 +75,12 @@ extern "C" {
#define ESP_GATT_UUID_CHAR_VALID_RANGE 0x2906 /* Characteristic Valid Range */
#define ESP_GATT_UUID_EXT_RPT_REF_DESCR 0x2907
#define ESP_GATT_UUID_RPT_REF_DESCR 0x2908
#define ESP_GATT_UUID_NUM_DIGITALS_DESCR 0x2909
#define ESP_GATT_UUID_VALUE_TRIGGER_DESCR 0x290A
#define ESP_GATT_UUID_ENV_SENS_CONFIG_DESCR 0x290B
#define ESP_GATT_UUID_ENV_SENS_MEAS_DESCR 0x290C
#define ESP_GATT_UUID_ENV_SENS_TRIGGER_DESCR 0x290D
#define ESP_GATT_UUID_TIME_TRIGGER_DESCR 0x290E
/* GAP Profile Attributes */
#define ESP_GATT_UUID_GAP_DEVICE_NAME 0x2A00

View file

@ -381,7 +381,13 @@ static void btc_gatts_act_create_attr_tab(esp_gatts_attr_db_t *gatts_attr_db,
case ESP_GATT_UUID_CHAR_AGG_FORMAT:
case ESP_GATT_UUID_CHAR_VALID_RANGE:
case ESP_GATT_UUID_EXT_RPT_REF_DESCR:
case ESP_GATT_UUID_RPT_REF_DESCR:{
case ESP_GATT_UUID_RPT_REF_DESCR:
case ESP_GATT_UUID_NUM_DIGITALS_DESCR:
case ESP_GATT_UUID_VALUE_TRIGGER_DESCR:
case ESP_GATT_UUID_ENV_SENS_CONFIG_DESCR:
case ESP_GATT_UUID_ENV_SENS_MEAS_DESCR:
case ESP_GATT_UUID_ENV_SENS_TRIGGER_DESCR:
case ESP_GATT_UUID_TIME_TRIGGER_DESCR: {
uint16_t svc_hal = btc_creat_tab_env.svc_start_hdl;
tBT_UUID bta_char_uuid;
esp_bt_uuid_t uuid_temp;