This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to limit the advertising time?

Hi

I am trying to start an advertise. If I use the “BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED” flag all work’s pretty fine, but whenever I change the flag to “BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE” I receive the error code 7, after using the function ad_ble_gap_adv_start(&m_adv_params). In this thread I read about the limited advertising time (180 seconds). How can I change the advertising time? I didn’t found it.

Best regards

Luckylukas

Related