# WifiEvent ## **Overview** **Related Modules:** [Wifiservice](Wifiservice.md) **Description:** Represents the pointer to a Wi-Fi event callback for station and hotspot connection, disconnection, or scan. If you do not need a callback, set the value of its pointer to **NULL**. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields

Variable Name

Description

OnWifiConnectionChanged )(int state, WifiLinkedInfo *info)

void(* 

OnWifiScanStateChanged )(int state, int size)

void(* 

OnHotspotStateChanged )(int state)

void(* 

OnHotspotStaJoin )(StationInfo *info)

void(* 

OnHotspotStaLeave )(StationInfo *info)

void(* 

## **Details** ## **Field Documentation** ## OnHotspotStaJoin ``` void(* WifiEvent::OnHotspotStaJoin) ([StationInfo](StationInfo.md) *info) ``` **Description:** Station connected ## OnHotspotStaLeave ``` void(* WifiEvent::OnHotspotStaLeave) ([StationInfo](StationInfo.md) *info) ``` **Description:** Station disconnected ## OnHotspotStateChanged ``` void(* WifiEvent::OnHotspotStateChanged) (int state) ``` **Description:** Hotspot state change ## OnWifiConnectionChanged ``` void(* WifiEvent::OnWifiConnectionChanged) (int state, [WifiLinkedInfo](WifiLinkedInfo.md) *info) ``` **Description:** Connection state change ## OnWifiScanStateChanged ``` void(* WifiEvent::OnWifiScanStateChanged) (int state, int size) ``` **Description:** Scan state change