Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
WifiSniffer Class Reference
Inheritance diagram for WifiSniffer:
ISystemReadyHandler

Public Member Functions

void begin ()
 Initialise the sniffer. More...
 
void end ()
 Stop the sniffer. More...
 
void onBeacon (WifiBeaconCallback callback)
 Register notification for beacon (AP) info. More...
 
void onClient (WifiClientCallback callback)
 Register notification for client info. More...
 
void onSniff (WifiSnifferCallback callback)
 Register notification for all incoming data. More...
 
void setChannel (unsigned channel)
 Set the channel to listen on. More...
 
unsigned getChannel ()
 Get the current channel being listened on. More...
 

Member Function Documentation

void WifiSniffer::begin ( )

Initialise the sniffer.

void WifiSniffer::end ( )

Stop the sniffer.

unsigned WifiSniffer::getChannel ( )
inline

Get the current channel being listened on.

void WifiSniffer::onBeacon ( WifiBeaconCallback  callback)
inline

Register notification for beacon (AP) info.

void WifiSniffer::onClient ( WifiClientCallback  callback)
inline

Register notification for client info.

void WifiSniffer::onSniff ( WifiSnifferCallback  callback)
inline

Register notification for all incoming data.

Note
Callback invoked for all packet types, including beacon/client
void WifiSniffer::setChannel ( unsigned  channel)
inline

Set the channel to listen on.

Parameters
channel