Hello,
I'm working on a project based on the ble_app_multirole_lesc example, under examples/ble_central_and_peripheral/experimental and I found a bug.
In ble_evt_dispatch
when there hasn't been a connection yet and the advertising times out, the event is not forwarded to the advertising module because the role of the "connection" is BLE_GAP_ROLE_INVALID
. This prevents the device to stop advertising or to change the mode to slow advertising.
The bug is easily fixed by moving the call ble_advertising_on_ble_evt(p_ble_evt);
outside the peripheral scope.