mirror of
https://github.com/esp8266/Arduino.git
synced 2025-08-18 17:42:23 +03:00
* add new WiFimodes: WIFI_SHUTDOWN & WIFI_RESUME with example * restore WiFi.onWiFiModeChange()
24 lines
376 B
C
24 lines
376 B
C
|
|
#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_
|