mirror of
https://github.com/FYSETC/ESPWebDAV.git
synced 2026-03-03 07:24:04 +01:00
28 lines
440 B
C++
28 lines
440 B
C++
#ifndef _NETWORK_H_
|
|
#define _NETWORK_H_
|
|
|
|
#define HOSTNAME "FYSETC"
|
|
#define SERVER_PORT 80
|
|
|
|
#define WIFI_CONNECT_TIMEOUT 30000UL
|
|
|
|
class Network {
|
|
public:
|
|
Network() { initFailed = false;wifiConnecting = true;}
|
|
bool start();
|
|
int startDAVServer();
|
|
bool isConnected();
|
|
bool isConnecting();
|
|
void handle();
|
|
bool ready();
|
|
|
|
private:
|
|
bool wifiConnected;
|
|
bool wifiConnecting;
|
|
bool initFailed;
|
|
};
|
|
|
|
extern Network network;
|
|
|
|
#endif
|