I am creating proof of concept software using a nRF52840 Dev Kit. The code is based on the Nordic UART Service example which uses Zephyr, but has been substantially modified to suit the application.
I use "bt_le_adv_start" to begin Bluetooth advertising. All is working well except the Bluetooth Advertising stops after approx. 30 seconds.
I cannot find an API to use to change the advertising timeout; is there one?
Is it possible to change the timeout to "never"?
I've noticed that the Nordic SDK has functions which allow for changing of the timeout value; can I mix Zephyr API calls and Nordic SDK API calls?
The application may periodically change the advertised values. If I change the advertised values using "bt_le_adv_update_data", does the timeout counter reset (and I get another 30 seconds)?
As a final, but less desirable option, I could stop the advertising, then re-start every 15 seconds. Is there anything I should know about solving the problem this way?
-Craig Goldman