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

Beacon configuration

I am using the nRF51822 and code base 6.1 How can I program the advertising mode of the beacon to not time out. I am looking to advertise for 10 seconds and then go to sleep for for 10 seconds. This is a 24 / 7 beacon.

Parents
  • FormerMember
    0 FormerMember

    If you set the advertising timeout to '0', the advertising will not time out. The ble_app_beacon example in SDK 7.2.0 sets the advertising timeout the following way:

    #define APP_CFG_NON_CONN_ADV_TIMEOUT    0      /**< Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */
    
Reply
  • FormerMember
    0 FormerMember

    If you set the advertising timeout to '0', the advertising will not time out. The ble_app_beacon example in SDK 7.2.0 sets the advertising timeout the following way:

    #define APP_CFG_NON_CONN_ADV_TIMEOUT    0      /**< Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout. */
    
Children
Related