Hi,
I'm using 52810 basing on ble_app_uart example. We use a IO to start or stop advertising. Start advertising when the IO level is low while stop advertising when the IO level is high. I use 1 second advertising interval. When powered up, it would advertise and the current is normal. But current is too high(more than 210uA all the time) if I start advertising again after stop advertising. I don’t know whether to start advertising again correctly or not.
Start advertising:
if(!adver_on_flag)
{
advertising_init();
err_code = ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
adver_on_flag = true;
}
Stop advertising:
if(adver_on_flag)
{
err_code = sd_ble_gap_adv_stop();
APP_ERROR_CHECK(err_code);
adver_on_flag = false;
}