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

BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED

What does it mean if I set my advertising timeout with this macro (which is equal to zero)? I would expect that it would advertise forever but instead sd_ble_gap_adv_start returns an invalid parameter error code.

Parents
  • Hi Bret,

    In the past, I usually ran into this issue when the advertising flags were not set appropriately. Make sure the advertising flags are set to BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. I suspect it may instead be set to BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE which, being limited, is not allowed to advertise indefinitely. You'll find this in the advertising initialization function.

    Hope this helps,

    Eric

Reply
  • Hi Bret,

    In the past, I usually ran into this issue when the advertising flags were not set appropriately. Make sure the advertising flags are set to BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE. I suspect it may instead be set to BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE which, being limited, is not allowed to advertise indefinitely. You'll find this in the advertising initialization function.

    Hope this helps,

    Eric

Children
No Data
Related