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

Limited Discoverable Mode VS General Discoverable Mode nRF52840 SDK16 s140

Hi everyone,

I want to set by BLE device advertising itself for 30s and then go to sleep. To that I set the APP_ADV_DURATION = 3000. What is not clear to me is the difference between 

BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE and BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. I've read that if you want to keep your device always advertising you have to set APP_ADV_DURATION = 0 and BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. But what if you want to advertise for a specific time such as in my case?

I mean, whatever mode I select the result is the same (the board stop advertising after 30s). So my questions are:

1. What is the difference between BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE and BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE?

2. In my case what should I select? BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE or BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE

3. Is this somehow related to power consumption?

Thanks in advance

Nick

Parents Reply Children
No Data
Related