1.2.2.1.1.4.66 BLE_GAP_SetScanningParam

C

uint16_t BLE_GAP_SetScanningParam(BLE_GAP_ScanningParams_T *p_scanParams);

Description

Set the Scanning Parameters.

Note

This API should not be called when scanning is enabled.

This API belongs to legacy advertising feature. It will be disallowed if any one API belongs extended advertising feature is issued before. Categories of advertising APIs and events for details of advertising APIs.

BLE_GAP_ScanInit is required for this API.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully set scanning parameters.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters, if any of the scanning parameters are out of range.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed when extended Adv. feature is in-use.