mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-04-01 09:52:14 +02:00
update to async web server
This commit is contained in:
parent
73f39d67c3
commit
a55dc7f66b
8 changed files with 1089 additions and 2966 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#include <WebServer.h>
|
||||
#include <esp_task_wdt.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include "Somfy.h"
|
||||
#ifndef wresp_h
|
||||
#define wresp_h
|
||||
|
||||
class WebServer;
|
||||
|
||||
class JsonFormatter {
|
||||
protected:
|
||||
char *buff;
|
||||
|
|
@ -66,6 +66,7 @@ class JsonResponse : public JsonFormatter {
|
|||
class AsyncJsonResp : public JsonFormatter {
|
||||
protected:
|
||||
void _safecat(const char *val, bool escape = false) override;
|
||||
AsyncWebServerRequest *_request = nullptr;
|
||||
AsyncResponseStream *_stream = nullptr;
|
||||
public:
|
||||
void beginResponse(AsyncWebServerRequest *request, char *buff, size_t buffSize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue