mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-04-01 09:52:14 +02:00
remove sync server
This commit is contained in:
parent
9584f01a70
commit
8262f392f5
10 changed files with 12 additions and 369 deletions
11
src/WResp.h
11
src/WResp.h
|
|
@ -3,8 +3,6 @@
|
|||
#ifndef wresp_h
|
||||
#define wresp_h
|
||||
|
||||
class WebServer;
|
||||
|
||||
class JsonFormatter {
|
||||
protected:
|
||||
char *buff;
|
||||
|
|
@ -54,15 +52,6 @@ class JsonFormatter {
|
|||
void addElem(const char *name, const char *val);
|
||||
void addElem(const char* name, uint64_t lval);
|
||||
};
|
||||
class JsonResponse : public JsonFormatter {
|
||||
protected:
|
||||
void _safecat(const char *val, bool escape = false) override;
|
||||
public:
|
||||
WebServer *server;
|
||||
void beginResponse(WebServer *server, char *buff, size_t buffSize);
|
||||
void endResponse();
|
||||
void send();
|
||||
};
|
||||
class AsyncJsonResp : public JsonFormatter {
|
||||
protected:
|
||||
void _safecat(const char *val, bool escape = false) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue