#ifndef MAIN_H
    #define MAIN_H

    #include "hardware.h"
    #include <Arduino.h>
    #include "secrets.h" 
    #include "settings.h"

    Settings settings;
    
    #ifdef WIFI
        #include "WiFi.h" 
    #endif

    #ifdef LOCAL_ACL
            #include "acl.h"
                ACL acl = {
            };
    #endif

    #ifdef WEB_SERVER
        #include <AsyncTCP.h>
        #include "ESPAsyncWebServer.h"
        #include "SPIFFS.h"
        #include <ArduinoJson.h>
        #include <AsyncJson.h>
        #ifdef WEB_SERIAL_DEBUG
            #include <WebSerial.h>
        #endif
        #ifdef WEB_OTA_UPDATE
             #include <AsyncElegantOTA.h>
        #endif

        #include "mainwebserver.h"
        #ifdef LOCAL_ACL
                #include "acl.h"
                    ACL acl = {
                };
            #ifdef LOCAL_ACL_API
                #include "aclwebserver.h"
            #endif
        #endif
    #endif

    #ifdef BUZZER
        #include "buzzer_ctl.h"
    #endif
    
#endif