Hi all
I'm developing a BLE application using nRF52832 : SDK 17.xx
I need to embed a passkey, and the only app example relevant in this case is ble_app_gls.
using this example causes the sw to enter the function on_adv_evt (due to advertising_init) every 180 Sec ( ... .config.ble_adv_fast_timeout = APP_ADV_DURATION;
if I clear this timeout/increase it- I get an immediate error (NRF_ERROR_INVALID_PARAM) when calling the ADV init.
function on_adv_evt in "knowingly" forcing reset to the cpu (sd_power_system_off). every 180Sec (wake up is by gpio pin).
removing sd_power_system_off & the wakeup - from on_adv_evt- causes the device to disappear from the devices list (of the mobile phone app) after 180Sec,
and the device can not be connected anymore.
screening all other examples - it seems that almost all of them contain the reset mechanism.
one of the few examples that don't involve a reset is ble_ap_blinky(but without passkey), still results in the same kind of ADV I need.
so I took advertising_init && advertising_start from blinky to use in my app.
now I have no reset && ADV works without a time limit.
BUT - after a successful connection- the device disappear from the devices list(+can not be connected anymore) !!
I cant afford a reset to the cpu (while my app is running).
ADV itself isn't the issue.
all I want is these 3 things
1. Passkey
2. Appear on the mobile app for ever with ADV so I can connect at any time
3. NO RESETS please
blinky fulfills only 2+3
gls only 1+2
is anyone familiar with this issue - to aid me
thanks
Yona