smartPOC-tx/include/webserver.h
2025-04-02 00:15:31 +02:00

27 lines
No EOL
1.1 KiB
C

#if !defined(_WEBSERVER_H)
#define _WEBSERVER_H
#include <config.h>
static void redirectHomeResponse(AsyncWebServerRequest *request);
//
static void triggerTimeBeacon(AsyncWebServerRequest *request);
static void insertPage(AsyncWebServerRequest *request);
static void transmit(AsyncWebServerRequest *request);
static void clearQueue(AsyncWebServerRequest *request);
//
static void setAPCfg(AsyncWebServerRequest *request);
static void setWifi1Cfg(AsyncWebServerRequest *request);
static void setWifi2Cfg(AsyncWebServerRequest *request);
static void setTransmitterCfg(AsyncWebServerRequest *request);
static void setMQTTCfg(AsyncWebServerRequest *request);
static void setDWDMoWaS(AsyncWebServerRequest *request);
static void setTimebeacon(AsyncWebServerRequest *request);
static void setIdlebeacon(AsyncWebServerRequest *request);
static void setDevCfg(AsyncWebServerRequest *request);
//
static void justReboot(AsyncWebServerRequest *request);
static void resetConfigReboot(AsyncWebServerRequest *request);
void webserver_setup();
void webserver_setup(cfg_t *cfg);
#endif