esp-idf-svc
esp-idf-svc copied to clipboard
Adding a descriptor to the Characteristic sequence is problematic
Adding a descriptor to the Characteristic sequence is problematic
- MCU: esp32c3
- OS: macos
- ESP-IDF: v5.2.2
https://github.com/esp-rs/esp-idf-svc/blob/ac98266a07309e1b9e0885711fb2282b301bc78a/examples/bt_gatt_server.rs#L427-L449
When I swapped the order of adding these two characteristics, I found that CCCD was added to the last characteristic and not to the characteristic with Property Indicator
https://github.com/esp-rs/esp-idf-svc/blob/ac98266a07309e1b9e0885711fb2282b301bc78a/examples/bt_gatt_server.rs#L482-L488