h2zero / esp-nimble-cpp

C++ library for the esp32 NimBLE stack based on and mostly compatible with @nkolban cpp_utils BLE library.
https://h2zero.github.io/esp-nimble-cpp/
Apache License 2.0
181 stars 62 forks source link

Not getting passkey events in custom gap handler #146

Closed finger563 closed 5 months ago

finger563 commented 8 months ago

I'm not getting BLE_GAP_EVENT_PASSKEY_ACTION in my custom gap event handler (but I am getting the other event), is that expected? Relevant code here

Originally posted by @finger563 in https://github.com/h2zero/esp-nimble-cpp/pull/117#issuecomment-1984916612

h2zero commented 7 months ago

Hmm, I'm not sure why that isn't being sent, possibly missing the call in NimBLE.

h2zero commented 5 months ago

@finger563 I have confirmed this to be an upstream issue. There should be a call here to ble_gap_event_listener_call(&event); here: https://github.com/espressif/esp-nimble/blob/d53c988a93aef899a4198fdf69c828309f312c1e/nimble/host/src/ble_gap.c#L7116

To

h2zero commented 5 months ago

Closing this as it is an upstream issue.