Hello, I use nrf51822 , sdk 8.0.0, s110
I defined advertise interval and timeout
#define APP_ADV_INTERVAL 320
#define APP_ADV_TIMEOUT_IN_SECONDS 3
Also, I write advertising init function at below;
static void advertising_init(void)
{
.
.
.
ble_adv_modes_config_t options = {0};
options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED;
options.ble_adv_fast_interval = APP_ADV_INTERVAL;
options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
err_code = ble_advertising_init(&advdata, &options, NULL, NULL);
APP_ERROR_CHECK(err_code);
}
The question is, How it will start to advertise again? I'm trying to build a periodic advertise structure. For example;
- Start advertise
- Timeout x seconds later (Stop advertise)
- Start advertise again y seconds later.
Is it possible?