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

Slow / fast advertising

Hi,

I have a question regarding fast/slow advertising

I'd like to advertise for 180s using a 100ms interval, then switch to a 1s interval, preferably for ever. I set advertise options as shown in the image.

When I test the software I find that advertising stops after 3 seconds. Why?

Thank you for helping me out on this M

image description

Parents
  • FormerMember
    0 FormerMember

    The advertising_init(..) function looks fine. Could you run the chip in debug mode and put a breakpoint in on_timeout(..), adv_mode_next_avail_get(..), and ble_advertising_start(..) all in ble_advertising.c, just to check if you can get some useful information form that. Could you also upload your main.c here? Which SDK and softdevice do you use?

Reply
  • FormerMember
    0 FormerMember

    The advertising_init(..) function looks fine. Could you run the chip in debug mode and put a breakpoint in on_timeout(..), adv_mode_next_avail_get(..), and ble_advertising_start(..) all in ble_advertising.c, just to check if you can get some useful information form that. Could you also upload your main.c here? Which SDK and softdevice do you use?

Children
No Data
Related