ble_advertising_init returns error 7 when advertising timeout is set to zero

Hello,

I am using SDK 17.1.0 and using the code from the ble_app_uart example on a custom board to test BLE connectivity, when I load the example as is there are no issues but when I change the APP_ADV_DURATION parameter to zero so I can advertise indefinitely the ble_advertising_init function returns error 7 and the example hangs. When I use any value over zero and less than 18000 the example works correctly but any values outside this range the application hangs.

What could be the reason for this?

Thank you very much for your time.

Best regards

Parents Reply Children
No Data
Related