BLE_GAP_SetExtScanRspData

C

uint16_t BLE_GAP_SetExtScanRspData(BLE_GAP_ExtAdvDataParams_T *p_scanDataParam);

Description

Configures extended scan response data for an advertising set.

Note

This function sets the scan response data associated with an advertising set created by BLE_GAP_SetExtAdvParams. It can be called at any time, regardless of whether advertising for the set is currently enabled or disabled. This function is part of the extended advertising feature and cannot be used if legacy advertising APIs have been used. See Categories of advertising APIs and events for a categorization of advertising APIs. Initialization with BLE_GAP_AdvInit and BLE_GAP_ExtAdvInit is required before calling this function.

Parameters

ParameterDescription
[in] p_scanDataParamPointer to a BLE_GAP_ExtAdvDataParams_T structure containing the scan response data.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully configures extended scan response data.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.
MBA_RES_UNKNOWN_ADV_IDUnknown advertising identifier.