From: Angus Gratton Date: Tue, 12 Sep 2017 00:57:45 +0000 (+1000) Subject: gatts_demo example: Use add_char_descr.attr_handle everywhere X-Git-Tag: v3.1-dev~291^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5301bdac64191a95884bc9cdcf7468020ccb3c6;p=esp-idf gatts_demo example: Use add_char_descr.attr_handle everywhere --- diff --git a/examples/bluetooth/gatt_server/main/gatts_demo.c b/examples/bluetooth/gatt_server/main/gatts_demo.c index a29676cd17..8c30fd326e 100644 --- a/examples/bluetooth/gatt_server/main/gatts_demo.c +++ b/examples/bluetooth/gatt_server/main/gatts_demo.c @@ -455,7 +455,7 @@ static void gatts_profile_a_event_handler(esp_gatts_cb_event_t event, esp_gatt_i break; } case ESP_GATTS_ADD_CHAR_DESCR_EVT: - gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char.attr_handle; + gl_profile_tab[PROFILE_A_APP_ID].descr_handle = param->add_char_descr.attr_handle; ESP_LOGI(GATTS_TAG, "ADD_DESCR_EVT, status %d, attr_handle %d, service_handle %d\n", param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_handle); break; @@ -608,7 +608,7 @@ static void gatts_profile_b_event_handler(esp_gatts_cb_event_t event, esp_gatt_i NULL, NULL); break; case ESP_GATTS_ADD_CHAR_DESCR_EVT: - gl_profile_tab[PROFILE_B_APP_ID].descr_handle = param->add_char.attr_handle; + gl_profile_tab[PROFILE_B_APP_ID].descr_handle = param->add_char_descr.attr_handle; ESP_LOGI(GATTS_TAG, "ADD_DESCR_EVT, status %d, attr_handle %d, service_handle %d\n", param->add_char_descr.status, param->add_char_descr.attr_handle, param->add_char_descr.service_handle); break;