2020-03-25 09:00:55 +01:00
|
|
|
#ifndef WLED_SERVER_H
|
|
|
|
#define WLED_SERVER_H
|
2020-03-25 09:36:55 +01:00
|
|
|
#include <Arduino.h>
|
2020-03-25 09:00:55 +01:00
|
|
|
/*
|
|
|
|
* Server page declarations
|
|
|
|
*/
|
2020-03-25 10:43:12 +01:00
|
|
|
class AsyncWebServerRequest;
|
|
|
|
|
2020-03-25 09:00:55 +01:00
|
|
|
|
|
|
|
bool isIp(String str);
|
|
|
|
bool captivePortal(AsyncWebServerRequest *request);
|
|
|
|
void initServer();
|
|
|
|
void serveIndexOrWelcome(AsyncWebServerRequest *request);
|
|
|
|
void serveIndex(AsyncWebServerRequest* request);
|
|
|
|
String msgProcessor(const String& var);
|
|
|
|
void serveMessage(AsyncWebServerRequest* request, uint16_t code, String headl, String subl="", byte optionT=255);
|
|
|
|
String settingsProcessor(const String& var);
|
|
|
|
String dmxProcessor(const String& var);
|
|
|
|
void serveSettings(AsyncWebServerRequest* request);
|
|
|
|
|
|
|
|
#endif //WLED_SERVER_H
|