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.
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.
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. */
Just a comment, if you set the timeout to 0 make sure you set the advertising flag to *_GENERAL_DISC_MODE, the LIMITED_DISC_MODE is not allowed with no timeout.
Just a comment, if you set the timeout to 0 make sure you set the advertising flag to *_GENERAL_DISC_MODE, the LIMITED_DISC_MODE is not allowed with no timeout.