Hello,everyone. Now i have the board nrf52832 and i want it to enter the low-power mode but keep the the advertising. Now the measured current is 160uA, I think there should be a problem, here is the code. How can i do? i need your help...
static void on_adv_evt(ble_adv_evt_t ble_adv_evt)
{
uint32_t err_code;
switch (ble_adv_evt)
{
case BLE_ADV_EVT_FAST:
NRF_LOG_INFO("Fast Adverstising\r\n");
err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
APP_ERROR_CHECK(err_code);
break;
case BLE_ADV_EVT_IDLE:
// sleep_mode_enter();
advertising_start();
break;
default:
break;
}
}
and the end of main function:
for (;;)
{
if (NRF_LOG_PROCESS() == false)
{
power_manage();
}
}