04-ESP8226的WiFi通用库学习
ESP8266通用库的头文件名,ESP8266WiFiGeneric.h
按照内容区分为下面几个类别:
WiFi事件类:
//STA模式下连接
WiFiEventHandler onStationModeConnected(std::function<void(const WiFiEventStationModeConnected&)>);
//STA模式下断开连接
WiFiEventHandler onStationModeDisconnected(std::function<void(const WiFiEventStationModeDisconnected&)>);
//STA模式下验证模式更改
WiFiEventHandler onStationModeAuthModeChanged(std::function<void(const WiFiEventStationModeAuthModeChanged&)>);
//STA模式下获取IP
WiFiEventHandler onStationModeGotIP(std::function<void(const WiFiEventStationModeGotIP&)>);
//STA模式DHCP超时
WiFiEventHandler onStationModeDHCPTimeout(std::function<void(void)>);
//AP模式下被连接
WiFiEventHandler onSoftAPModeStationConnected(std::function<void(const WiFiEventSoftAPModeStationConnected&)>);
//AP模式下被断开
WiFiEventHandler onSoftAPModeStationDisconnected(std::function<void(const WiFiEventSoftAPModeStationDisconnected&)>);
//AP模式下探针接收请求
WiFiEventHandler onSoftAPModeProbeRequestReceived(std::function<void(const WiFiEventSoftAPModeProbeRequestReceived&)>);
//WiFi模式改变
WiFiEventHandler onWiFiModeChange(std::function<void(const WiFiEventModeChange&