This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Possibility to change advertising timeout

Hello,

I want to change the advertising timout during runtime. We have two use cases for our device:

  1. Batterie mode --> advertising timeout = 2min

  2. Power supply --> no advertising timeout (advertising timeout = 0)

Is it possible to change this sofdevice parameter during runtime? If yes, how to do that? ;-)

I am using S120 on a nRF51822.

Regards, BTprogrammer

Parents
  • Hello Ole, sorry for not closing that question. I changed the advertising parameters in function ble_advertising_start() in ble_advertising.c according to my needs. This works for me so far. So it is possible to set adv_params.timeout = 0;there and it works with no timeout. But it was not possible for me, to set adv_params.timeout = 0; in the advertising_init() function. Anyway for now it works as expected. Thanks for your reply. Regards, BTprogrammer

Reply
  • Hello Ole, sorry for not closing that question. I changed the advertising parameters in function ble_advertising_start() in ble_advertising.c according to my needs. This works for me so far. So it is possible to set adv_params.timeout = 0;there and it works with no timeout. But it was not possible for me, to set adv_params.timeout = 0; in the advertising_init() function. Anyway for now it works as expected. Thanks for your reply. Regards, BTprogrammer

Children
No Data
Related