This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Stop advertising

Hi how to power off the ble after one advertising event ? i.e i want to stop advertising after one advertising event!

Parents
  • Don't know if it will work, but try this:

    • If first advertising event is generated with advertising interval delay after sd_ble_gap_adv_start call then try to call sd_ble_gap_adv_stop after calling sd_ble_gap_adv_start and waiting for 3/2*(advertising interval) with timer.
    • If first advertising event is generated right after sd_ble_gap_adv_start call ther wait for 1/2*(advertising interval) with timer and call sd_ble_gap_adv_stop.
Reply
  • Don't know if it will work, but try this:

    • If first advertising event is generated with advertising interval delay after sd_ble_gap_adv_start call then try to call sd_ble_gap_adv_stop after calling sd_ble_gap_adv_start and waiting for 3/2*(advertising interval) with timer.
    • If first advertising event is generated right after sd_ble_gap_adv_start call ther wait for 1/2*(advertising interval) with timer and call sd_ble_gap_adv_stop.
Children
No Data
Related