restructure
This commit is contained in:
parent
95faf3f3f1
commit
c5fc4ba15e
3 changed files with 13 additions and 21 deletions
|
@ -5,13 +5,23 @@
|
|||
#include <Arduino.h>
|
||||
#include "secrets.h"
|
||||
#include "settings.h"
|
||||
|
||||
|
||||
#ifdef LOCAL_ACL
|
||||
#include "ACL.h"
|
||||
ACL acl = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef WIFI
|
||||
#include "WiFi.h"
|
||||
#endif
|
||||
|
||||
#ifdef WEB_SERVER
|
||||
#include "web_server.h"
|
||||
#include <AsyncTCP.h>
|
||||
#include "ESPAsyncWebServer.h"
|
||||
#include "SPIFFS.h"
|
||||
#include <ArduinoJson.h>
|
||||
#include <AsyncJson.h>
|
||||
#ifdef WEB_SERIAL_DEBUG
|
||||
#include <WebSerial.h>
|
||||
#endif
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
#ifndef WEB_SERVER_H
|
||||
#define WEB_SERVER_H
|
||||
|
||||
#include <AsyncTCP.h>
|
||||
#include "ESPAsyncWebServer.h"
|
||||
#include "SPIFFS.h"
|
||||
#include <ArduinoJson.h>
|
||||
#include <AsyncJson.h>
|
||||
|
||||
// Set web server port number to 80
|
||||
AsyncWebServer server(80);
|
||||
|
||||
#ifdef LOCAL_ACL
|
||||
#include "ACL.h"
|
||||
ACL acl = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -8,6 +8,7 @@ const unsigned long wifiRebootTimeout = 20000; // Delay before reboot after disc
|
|||
unsigned int bitCount = 0; // Variable to keep track of the bit count
|
||||
unsigned int maxReaderWaitTime = 9000; // Variable to timeout reader after too long of no data.
|
||||
Settings settings;
|
||||
AsyncWebServer server(80);
|
||||
|
||||
#ifdef WIFI
|
||||
|
||||
|
|
Loading…
Reference in a new issue