WLED/wled00/wled_server.h

21 lines
666 B
C
Raw Normal View History

#ifndef WLED_SERVER_H
#define WLED_SERVER_H
#include <Arduino.h>
/*
* Server page declarations
*/
2020-03-25 10:43:12 +01:00
class AsyncWebServerRequest;
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