1.2.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

ParameterDescription
[in] advHandleAdvertising handle. Value 0xF0 to get the address of legacy advertising.
[in] p_addrPointer to the BLE_GAP_Addr_T structure buffer. Advertisier bluetooth address and address type.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully get the advertisier advertising address.
MBA_RES_FAILAnonymous advertisement. No address provided.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed.
MBA_RES_UNKNOWN_ADV_IDUnknown advertising identifier.