2023-06-12 17:17:28 +00:00
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
|
|
#include "hardware.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "secrets.h"
|
2023-06-13 18:01:13 +00:00
|
|
|
#include "settings.h"
|
2023-12-27 20:48:18 +00:00
|
|
|
#include <HTTPClient.h>
|
|
|
|
#include <ArduinoJson.h>
|
2023-06-13 21:05:43 +00:00
|
|
|
|
2023-06-12 17:17:28 +00:00
|
|
|
#ifdef WIFI
|
|
|
|
#include "WiFi.h"
|
2024-01-30 16:33:00 +00:00
|
|
|
#ifdef WEBHOOKS
|
2024-01-30 17:21:48 +00:00
|
|
|
#include "webhooks.h"
|
2024-01-30 16:33:00 +00:00
|
|
|
#endif
|
2023-06-12 17:17:28 +00:00
|
|
|
#endif
|
2024-01-30 17:21:48 +00:00
|
|
|
|
2023-06-21 19:03:58 +00:00
|
|
|
#ifdef LOCAL_ACL
|
|
|
|
#include "acl.h"
|
|
|
|
ACL acl = {
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2024-01-30 15:03:40 +00:00
|
|
|
#ifdef TTL_READER
|
2024-01-30 17:21:48 +00:00
|
|
|
#include "ttl_reader_utils.h"
|
2024-01-30 15:03:40 +00:00
|
|
|
#endif
|
|
|
|
|
2024-01-30 16:33:00 +00:00
|
|
|
#ifdef TINANCE2_BACKEND
|
|
|
|
#include "tinance2.h"
|
|
|
|
#endif
|
|
|
|
|
2023-06-12 17:17:28 +00:00
|
|
|
#ifdef WEB_SERVER
|
2023-06-13 18:33:44 +00:00
|
|
|
#include <AsyncTCP.h>
|
|
|
|
#include "ESPAsyncWebServer.h"
|
|
|
|
#include "SPIFFS.h"
|
|
|
|
#include <AsyncJson.h>
|
2023-06-12 17:17:28 +00:00
|
|
|
#ifdef WEB_OTA_UPDATE
|
2023-06-13 10:57:40 +00:00
|
|
|
#include <AsyncElegantOTA.h>
|
2023-06-12 17:17:28 +00:00
|
|
|
#endif
|
2023-06-13 19:11:23 +00:00
|
|
|
|
|
|
|
#include "mainwebserver.h"
|
2023-06-13 21:05:43 +00:00
|
|
|
#ifdef LOCAL_ACL_API
|
|
|
|
#include "aclwebserver.h"
|
|
|
|
#endif
|
2023-06-12 17:17:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BUZZER
|
|
|
|
#include "buzzer_ctl.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|