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
  • Hmm that sounds strange. You are sure that your advertisement packet does not go over the size of 31 bytes (for example name too long), see here. adv_uuids should be declared outside the function or else the data might be destroyed when exiting the function (this may not be an issue, but to be on the safe side).

    ble_advertising_start(..) will call sd_ble_gap_adv_start(..) and loop through several modes (FAST, SLOW etc) when the advertisement times out.

Reply
  • Hmm that sounds strange. You are sure that your advertisement packet does not go over the size of 31 bytes (for example name too long), see here. adv_uuids should be declared outside the function or else the data might be destroyed when exiting the function (this may not be an issue, but to be on the safe side).

    ble_advertising_start(..) will call sd_ble_gap_adv_start(..) and loop through several modes (FAST, SLOW etc) when the advertisement times out.

Children
No Data
Related