esp-idf-svc icon indicating copy to clipboard operation
esp-idf-svc copied to clipboard

Adding a descriptor to the Characteristic sequence is problematic

Open yexiyue opened this issue 7 months ago • 1 comments

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

yexiyue avatar Jul 23 '24 02:07 yexiyue