1.1.2.1.1.4.19 BLE_GAP_GetAdvAddr
C
uint16_t BLE_GAP_GetAdvAddr(uint8_t advHandle, BLE_GAP_Addr_T *p_addr);
Description
Retrieve the advertising address in the advertising events corresponding to the advertising handle.
Parameters
Parameter | Description |
---|---|
[in] advHandle | Advertising handle. Value 0xF0 to get the address of legacy advertising. |
[in] p_addr | Pointer to the BLE_GAP_Addr_T structure buffer. Advertisier bluetooth address and address type. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully advertisier advertising address. |
MBA_RES_FAIL | Anonymous advertisement. No address provided. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed. |
MBA_RES_UNKNOWN_ADV_ID | Unknown advertising identifier. |