mynewt-nimble
mynewt-nimble copied to clipboard
PASSKEY_ACTION event not passed to event listeners
The BLE_GAP_EVENT_PASSKEY_ACTION event is only passed to the connection event handler (the one passed to ble_gap_ext_adv_configure() or ble_gap_connect()) but not to event listeners registered with ble_gap_event_listener_register().
Is there a reason for this?
Most events in ble_gap.c are passed to both:
ble_gap_event_listener_call(&event);
ble_gap_call_conn_event_cb(&event, conn_handle);
Only in ble_gap_repeat_pairing_event(), ble_gap_identity_event(), ble_gap_passkey_event(), ble_gap_rx_param_req() and ble_gap_rx_l2cap_update_req() there is only:
ble_gap_call_conn_event_cb(&event, conn_handle);