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
Parameter | Description |
---|---|
[in] p_scanDataParam | Pointer to a BLE_GAP_ExtAdvDataParams_T structure containing the scan response data. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully configures extended scan response data. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |
MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |