Im working with example: nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_uart
There is APP_ADV_DURATION parameter, it is maximum duration. How to get longer duration or unlimited advertising duration?
A value of Zero means "indefinite".
I think this is documented somewhere - but it could be clearer.
How to properly post source code:
awneil said:I think this is documented somewhere - but it could be clearer
Thanks, now it works,
I also had to set up
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE
Before BLE worked with BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE
BartoszT said:now it works
Now please verify the answer: