WiFi Framework C++ Edition

◆ OnFrameReceived()

__event void OnFrameReceived ( void * Sender,
const wclWiFiSnifferFrameMetaData & Meta,
const void *const Buffer,
const unsigned long Size )

The event fires when a new frame received.

Parameters
SenderThe object initiates the event.
MetaThe frame's meta data.
BufferThe pointer to the received frame data buffer. The pointer is valid only inside the event handler.
SizeThe received frame size.

Please note, that the buffer pointed by the Buffer parameter is valid only inside the event handler. If an application needs to use the data outside the event handler it must copy data from the buffer pointed by the Buffer parameter into the internal application's buffer.

See also
wclWiFiSnifferFrameMetaData