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

ble_gap_adv_params_t::timeout

Hello,

I would like advertise for an unlimited time. Why value 0 in ble_gap_adv_params_t::timeout don't work ? Device don't advertise anything. It works fine with a positive value ( <180)/ I'm using S110 stack v6 and the last SDK .

Thanks,

Parents
  • Hi there,

    Are you advertising in limited discovery mode? i.e. is the flag BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE set in your advertisement data? If so, the call will fail because limited advertising can only be done for 180 seconds maximum.

    If you want unlimited advertising use general discovery by setting this flag: BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE instead.

    Regards,

    Carles

Reply
  • Hi there,

    Are you advertising in limited discovery mode? i.e. is the flag BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE set in your advertisement data? If so, the call will fail because limited advertising can only be done for 180 seconds maximum.

    If you want unlimited advertising use general discovery by setting this flag: BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE instead.

    Regards,

    Carles

Children
No Data
Related