This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there a way to stop the advertisement from resuming on its own?

Hello.

It is developed using nrf52832 (S132 v7.0.1, SDK v17.0.0) as a peripheral device.

I am implementing the advertisement processing, but the advertisement stops when connecting to the BLE device. However, when you disconnect from the device, the advertisement will start automatically.

I want to prevent advertising from starting on its own.
Do you have any advice?

Best regards.

Parents
  • Hello,

    Are you using the advertising library?
    If so, the advertising module will resume advertising if the criterias in the on_disconnected and on_terminated functions are met. You could change this by configuring ble_adv_on_disconnect_disabled to true.
    If you are not using the advertising library then the advertising start likely happens as part of the DISCONNECTED event handling.

    Best regards,
    Karl

  • Hello.

    I'm using an ad library and when I set ble_adv_on_disconnect_disabled to true, advertising no longer resumes.

    It was very helpful. Thank you very much.

    Best regards.

Reply Children
No Data
Related