-
Notifications
You must be signed in to change notification settings - Fork 2.1k
NimBLE: Replace Deprecated ble_gattc_ Functions #21234
Description
NimBLE deprecated four functions with ble_gattc_ prefix and they might be removed soon: mynewt-nimble#1978
Currently I think there are only two places in RIOT that use these:
RIOT/sys/stdio_nimble/stdio_nimble.c
Line 198 in 06eb1cd
| int rc = ble_gattc_indicate_custom(_conn_handle, _val_handle_stdout, om); |
RIOT/examples/networking/bluetooth_low_energy/nimble/nimble_heart_rate_sensor/main.c
Line 272 in 06eb1cd
| int res = ble_gattc_notify_custom(_conn_handle, _hrs_val_handle, om); |
Fortunately there is not much to it, because they just call the ble_gatts_ equivalent:
https://github.com/apache/mynewt-nimble/blob/bea72800c64000e9c06836e49de741ca6d318fa6/nimble/host/src/ble_gattc.c#L4717-L4725
This is just a reminder for myself to do this after #21206 is merged. That PR is already pretty complicated, I don't need a potential merge conflict 👀