When BLE is paired, advertising cannot be restarted

Hi,

After updating to NCS 2.9.0, I found that if the device is already paired, advertising cannot be started. I have configured CONFIG_BT_MAX_CONN=3.

E: Failed to start advertiser
E: Failed to start BLE advertising: -12
E: Could not start BLE advertising

Parents Reply
  • Hi,

    No, I did not use any features related to Matter. Please focus on the BLE advertising issue. I believe that when CONFIG_BT_MAX_CONN is greater than 1, the device should automatically restart advertising after a successful pairing.

    The error message "Failed to start BLE advertising: -12" is the result of my intentional call to BleService::StartAdvertising. In reality, BLE advertising should restart automatically, but it is clear that this version of the SDK does not handle it correctly.

    If I want to allow multiple pairings, besides CONFIG_BT_MAX_CONN, what other configurations are required?

Children
Related