BLE_GAP_GetAdvAddr
C
uint16_t BLE_GAP_GetAdvAddr(uint8_t advHandle, BLE_GAP_Addr_T *p_addr);Description
Retrieves the advertising address used in advertising events for a given advertising handle.
Parameters
| Parameter | Description |
|---|---|
| [in] advHandle | The advertising handle. Use value 0xF0 to retrieve the address of legacy advertising. |
| [in] p_addr | Pointer to a BLE_GAP_Addr_T structure to store the advertiser's Bluetooth address and address type. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully retrieves the advertisier advertising address. |
| MBA_RES_FAIL | Anonymous advertisement; no address available. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |
| MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |
