Bluetooth Framework C++ Edition

◆ OnAdvIndReceived()

__event void OnAdvIndReceived ( void *  Sender,
const wclBluetoothLeAdvertisingPduHeader PduHeader,
const __int64  AdvA,
const unsigned char *const  AdvData,
const unsigned char  AdvDataLen 
)

The event fires when the ADV_IND PDU received.

Parameters
SenderThe object initiates the event.
PduHeaderThe PDU header.
AdvAThe advertiser address.
AdvDataThe pointer to the advertisement data. Can be NULL. The pointer is valid only inside the event handler.
AdvDataLenThe advertisement data length in bytes.

The TxAdd field of the PduHeader parameter indicates whether the advertiser’s address in the AdvA parameter is public (TxAdd = False) or random (TxAdd = True). The ChSel field in the PduHeader parameter is True if the advertiser supports the LE Channel Selection Algorithm #2 feature.

See also
wclBluetoothLeAdvertisingPduHeader