"streambuf": "cpp", | "streambuf": "cpp", | ||||
"cinttypes": "cpp", | "cinttypes": "cpp", | ||||
"typeinfo": "cpp" | "typeinfo": "cpp" | ||||
} | |||||
}, | |||||
"python.pythonPath": "C:\\Users\\simon\\AppData\\Local\\Programs\\Python\\Python37\\python.exe" | |||||
} | } |
#ifndef __OTA_H | |||||
#define __OTA_H | |||||
#pragma once | |||||
#include <ESP8266WiFi.h> | #include <ESP8266WiFi.h> | ||||
#include <WiFiUdp.h> | #include <WiFiUdp.h> | ||||
}); | }); | ||||
ArduinoOTA.begin(); | ArduinoOTA.begin(); | ||||
} | |||||
#endif // __OTA_H | |||||
} |
#ifndef __FILESYS_H | |||||
#define __FILESYS_H | |||||
#pragma once | |||||
#include <LittleFS.h> | #include <LittleFS.h> | ||||
void appendFile(const char * path, const char * message); | void appendFile(const char * path, const char * message); | ||||
void renameFile(const char * path1, const char * path2); | void renameFile(const char * path1, const char * path2); | ||||
void deleteFile(const char * path); | void deleteFile(const char * path); | ||||
#endif // __FILESYS_H |
#ifndef __HTTPSERVER_H | |||||
#define __HTTPSERVER_H | |||||
#pragma once | |||||
#include "filesys.h" | #include "filesys.h" | ||||
#include <ESP8266WebServer.h> | #include <ESP8266WebServer.h> | ||||
class HTTPServer : public ESP8266WebServer { | class HTTPServer : public ESP8266WebServer { | ||||
private: | private: | ||||
const char* rootDir; | const char* rootDir; | ||||
return false; | return false; | ||||
} | } | ||||
}; | }; | ||||
#endif // __HTTPSERVER_H |
#include "user_interface.h" | #include "user_interface.h" | ||||
} | } | ||||
// OTA & WEB | // OTA & WEB | ||||
#include "ota.h" | |||||
#include "wifi_credentials.h" | #include "wifi_credentials.h" | ||||
#include "ota.h" | |||||
#include "httpserver.h" | #include "httpserver.h" | ||||
// BOARD | // BOARD |