A
Dear @jcaron,
Bringing 0x2901 CUD support to the Pycom BLE stack
You would need to modify the code you pointed out in [3] to add another descriptor for the description (it currently adds a 0x2902 CCC and you want to also add a 0x2901 CUD).
For each descriptor, you need to use esp_ble_gatts_add_char_descr then wait for xQueueReceive, apparently.
You would also have to add the user description as an allowed argument (line 1192) and process that like the other optional parameters.
[3] https://github.com/pycom/pycom-micropython-sigfox/blob/4d3322a60501cac1a06558a0c5c816e198570888/esp32/mods/modbt.c#L1276-L1290
Thanks for outlining the procedure in detail how to go forward on this. While I might feel like I could eventually accept this challenge while receiving further guidelines from folks more fluent with C++ as well as FreeRTOS, the ESP-IDF and the Bluetooth Softwarestack incorporated into the Firmware, we are currently a bit swamped between different other things.
Saying this, we are humbly asking members from the Pycom core team here if adding this feature could be worth the effort? We can assure you we will kindly be the first betatesters of added functionality in this regard.
Maybe @semireg (@caylanlarson) and @husigeza who worked together [1] on the important improvement re. processing the Bluetooth.CHAR_SUBSCRIBE_EVENT might add their thoughts here?
Thanks already and with kind regards,
Andreas.
[1] https://github.com/pycom/pycom-micropython-sigfox/pull/121