Hi, I'm building an applicaiton based on ble_app_uart.
I got that using idle_state_handle(); function to set the my nRF52833 into system ON mode.
I disable system OFF mode before
static void idle_state_handle(void) {
if (NRF_LOG_PROCESS() == false) {
nrf_pwr_mgmt_run();
}
}
In my application I use an app_timer to set a timer period (repeated) after 5minutes nRF will send an "string" to device that connected via BLE and continute wait to the next time to send again.
Please answer for me 3 questions to clarify this function
1. What is NRF_LOG_PROCESS ? when it is false or true ? (I think when device actually is in idle. So when it is idle ? In my application MobilePhone still keeps connect with nRF and app_timer still run.)
2. I got an issue when I use NRF_LOG_INFO() before I comment this function I can not log info in loop () ? And Logging work normally when I comment this function. What doest this function affect to NRF_LOG_INFO (). I set NRF_LOG_DEFFERED 0.
3. If I can set my device into system ON when I finish my work. by a flag and call nrf_pwr_mgmt_run();
Thanks for your support