problem in the esp_ble_gatts_create_attr_tab() function
Posted: Fri May 01, 2020 5:59 am
I am following the code of gatts service table from example code
https://github.com/espressif/esp-idf/bl ... eat_demo.c
In the example there is the function which create the attribute table, esp_ble_gatts_create_attr_tab(constesp_gatts_attr_db_t *gatts_attr_db, esp_gatt_if_tgatts_if, uint8_t max_nb_attr, uint8_t srvc_inst_id).
the last parameter is the service instance id. I want to know the significance of this variable. what does it do? there is no explanation on that anywhere.
https://github.com/espressif/esp-idf/bl ... eat_demo.c
In the example there is the function which create the attribute table, esp_ble_gatts_create_attr_tab(constesp_gatts_attr_db_t *gatts_attr_db, esp_gatt_if_tgatts_if, uint8_t max_nb_attr, uint8_t srvc_inst_id).
the last parameter is the service instance id. I want to know the significance of this variable. what does it do? there is no explanation on that anywhere.