move http and ota to lib/ for testing, add #pragma once include guards
This commit is contained in:
parent
b47f778fc1
commit
014aa028d7
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -48,5 +48,6 @@
|
||||
"streambuf": "cpp",
|
||||
"cinttypes": "cpp",
|
||||
"typeinfo": "cpp"
|
||||
}
|
||||
},
|
||||
"python.pythonPath": "C:\\Users\\simon\\AppData\\Local\\Programs\\Python\\Python37\\python.exe"
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
#ifndef __OTA_H
|
||||
#define __OTA_H
|
||||
#pragma once
|
||||
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <WiFiUdp.h>
|
||||
@ -47,6 +46,3 @@ void ota_setup() {
|
||||
ArduinoOTA.begin();
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // __OTA_H
|
@ -1,5 +1,4 @@
|
||||
#ifndef __FILESYS_H
|
||||
#define __FILESYS_H
|
||||
#pragma once
|
||||
|
||||
#include <LittleFS.h>
|
||||
|
||||
@ -12,5 +11,3 @@ void writeFile(const char * path, const char * message);
|
||||
void appendFile(const char * path, const char * message);
|
||||
void renameFile(const char * path1, const char * path2);
|
||||
void deleteFile(const char * path);
|
||||
|
||||
#endif // __FILESYS_H
|
@ -1,10 +1,8 @@
|
||||
#ifndef __HTTPSERVER_H
|
||||
#define __HTTPSERVER_H
|
||||
#pragma once
|
||||
|
||||
#include "filesys.h"
|
||||
#include <ESP8266WebServer.h>
|
||||
|
||||
|
||||
class HTTPServer : public ESP8266WebServer {
|
||||
private:
|
||||
const char* rootDir;
|
||||
@ -44,5 +42,3 @@ public:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // __HTTPSERVER_H
|
@ -9,8 +9,8 @@ extern "C" {
|
||||
#include "user_interface.h"
|
||||
}
|
||||
// OTA & WEB
|
||||
#include "ota.h"
|
||||
#include "wifi_credentials.h"
|
||||
#include "ota.h"
|
||||
#include "httpserver.h"
|
||||
|
||||
// BOARD
|
||||
|
Loading…
x
Reference in New Issue
Block a user