Hi, I want nrf52 to advertise infinitely without restarting it. What value should I set ble_adv_fast_timeout?
Hi, I want nrf52 to advertise infinitely without restarting it. What value should I set ble_adv_fast_timeout?
Hi! Try to set timeout to 0 like this:
#define APP_ADV_TIMEOUT_IN_SECONDS 0
and change advdata flag from "BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE" to
static void advertising_init(void){
...
advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
...
options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
...
}
Great! Thanks.
ok. How to implement the same thing in Beacon.