Hello,
I am working on a project with BLE using esp-idf version 4.4.3.
I am using the legacy way of creating services, characteristics and descriptors (esp_ble_gatts_add_char, esp_ble_gatts_add_char_descr)
and handling the return of the attribute handles in the server event handler callback.
Everything is fine when I'm creating multiple services and characteristics without descriptors.
I have about 7 caracteristics in a single service and each one of those has a descriptor.
I get a status of ESP_GATT_ERROR when handling the ESP_GATTS_ADD_CHAR_DESCR_EVT and get an invalid handle 0x00 for some descriptors (only for the last 1 or 2), after that some of the characteristics also get an invalid handle in the corresponding create event.
Has anybody run into something similar? I am stuck on this for several days and this is what I've tried so far:
- Increasing the stack size of the BTU and BTC task stack sizes
- Trying to synchronize all of the create events and their handlers in the callback
If anyone can give me some new methods to try or point me into a direction to search.
Ble Invalid Attribute Handle from ble stack when adding multiple descriptors
-
- Posts: 1
- Joined: Mon Jan 09, 2023 12:19 pm
Who is online
Users browsing this forum: No registered users and 150 guests