I wanted to use Nordi UART service, the problem is that if I have no contraction with the device, it would not advertise after a definite time, say 180 Seconds, my devices are AC mains powered, I just wanted to know How Can I enable them to advertise all the time.
In most BLE examples in the SDK there is a timeout on avertising set to 180 seconds. When timeout is reached, the example will stop advertising and go to system off mode. You can then restart the device by pressing button 1 on the DK.
If you change the define APP_ADV_TIMEOUT_IN_SECONDS from 180 to 0, the device should advertise without any timeout.
Jørgen Holmefjord said:If you change the define APP_ADV_TIMEOUT_IN_SECONDS from 180 to 0, the device should advertise without any timeout
Or use BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED