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

wants to know that device will go sleep or it just stop advertise after timeout occurs

Hi i am using nrf52840 DK and i am trying out sleep_mode after timeout happens. but i had a doubt in ble_adv_evt_idle i.e if i use this case the device goes into sleep and i fi use ble_adv_evt_fast then after timeout i could not able see any advertisement packet. is so because device gone into sleep or system is still on but advertisement is not happening.

Parents
  • Hi

    Please see the Infocenter on what the sd_app_evt_what() function does, and how it is used. I am having a little trouble understanding what you are struggling with. I am guessing your application is set to advertise for 10 seconds before going to sleep, which is why the sd_app_evt_wait() isn't working right away. It will wait for your application to finish advertising before putting it to sleep. As for why you can't discover the advertising data after sleep, I am not quite sure. How are you waking up your device? And how are you sure you are advertising if there is no advertising data?

    Best regards,

    Simon

Reply
  • Hi

    Please see the Infocenter on what the sd_app_evt_what() function does, and how it is used. I am having a little trouble understanding what you are struggling with. I am guessing your application is set to advertise for 10 seconds before going to sleep, which is why the sd_app_evt_wait() isn't working right away. It will wait for your application to finish advertising before putting it to sleep. As for why you can't discover the advertising data after sleep, I am not quite sure. How are you waking up your device? And how are you sure you are advertising if there is no advertising data?

    Best regards,

    Simon

Children
No Data
Related