I am developing a project by employing nRF51822 and my code is based on ble_app_uart. I met an issue that if there is no device connects to nRF51800 in 3 minutes, the program will run out of mainloop(I assume it goes onto idle mode or sleep mode). I tried to change APP_ADV_TIMEOUT_IN_SECONDS to bigger (default value is 180), such as 300, but the program will hold on advertising_start() and cannot enter mainloop.
Anybody can help me for setting advertising timeout to no limit.
Thanks Alex Chen