hi..........
i am using nrf42840 ...segger 15.2 version
i am facing the problem in sleep mode
i used the command to sleep
static void power_manage( void )
{
ret_code_t err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
} but it doesn't going to sleep please help me
see the code below
static void power_manage( void ) { ret_code_t err_code = sd_app_evt_wait(); APP_ERROR_CHECK(err_code); } /**@brief Application main function. */ int main(void) { bool erase_bonds; // Initialize. uart_init(); log_init(); timers_init(); buttons_leds_init(&erase_bonds); power_management_init(); ble_stack_init(); gap_params_init(); gatt_init(); services_init(); advertising_init(); conn_params_init(); uint32_t i; // Start execution. printf("\r\nUART started.\r\n"); NRF_LOG_INFO("Debug logging for UART over RTT started."); advertising_start(); // Enter main loop. for(;;) { while(1) ble_nus_data_send(&m_nus, "hello", 6, m_conn_handle); power_manage(); idle_state_handle(); } } /**