mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-18 17:42:23 +03:00
Experimental: add new WiFi (pseudo) modes: WIFI_SHUTDOWN & WIFI_RESUME (#6356)
* add new WiFimodes: WIFI_SHUTDOWN & WIFI_RESUME with example * restore WiFi.onWiFiModeChange()
This commit is contained in:
23
libraries/ESP8266WiFi/src/include/WiFiState.h
Normal file
23
libraries/ESP8266WiFi/src/include/WiFiState.h
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef WIFISTATE_H_
|
||||
#define WIFISTATE_H_
|
||||
|
||||
#include <user_interface.h>
|
||||
#include <ESP8266WiFiType.h>
|
||||
|
||||
struct WiFiState
|
||||
{
|
||||
uint32_t crc;
|
||||
struct
|
||||
{
|
||||
station_config fwconfig;
|
||||
ip_info ip;
|
||||
ip_addr_t dns[2];
|
||||
ip_addr_t ntp[2];
|
||||
WiFiMode_t mode;
|
||||
uint8_t channel;
|
||||
bool persistent;
|
||||
} state;
|
||||
};
|
||||
|
||||
#endif // WIFISTATE_H_
|
Reference in New Issue
Block a user