What is the minimum and maximum value for APP_ADV_TIMEOUT_IN_SECONDS ?
What is the minimum and maximum value for APP_ADV_TIMEOUT_IN_SECONDS ?
The documentation for ble_gap_adv_params_t states that the timeout can be between 0x0001 and 0x3FFF seconds. A value of 0 disables timeout, and in the case of directed advertisement this must be set to 0. When advertising in limited discoverable mode, the maximum is BLE_GAP_ADV_TIMEOUT_LIMITED_MAX (180).
The documentation for ble_gap_adv_params_t states that the timeout can be between 0x0001 and 0x3FFF seconds. A value of 0 disables timeout, and in the case of directed advertisement this must be set to 0. When advertising in limited discoverable mode, the maximum is BLE_GAP_ADV_TIMEOUT_LIMITED_MAX (180).