esp-nimble-cpp
esp-nimble-cpp copied to clipboard
Initialize ble_gatt_chr_def[]. Fixes #148
IDF 5.2 introduced a new member, cpfd, to the ble_gatt_chr_def struct. It needs to be initialized to nullptr in order to avoid accessing uninitialized memory. By initializing the whole struct, we get everything initialized in a backward-compatible way.
I've tested this change with both, IDF 5.2.1 and IDF 4.4.5
Thanks!
This fixes a crash for me too.
Any progress?