1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-06-28 11:30:19 +00:00

update examples with esp8266 specifics

This commit is contained in:
David Gauchard
2023-07-19 12:07:25 +02:00
parent c3bf9c5d00
commit b45f4f7356
6 changed files with 80 additions and 0 deletions

View File

@ -98,8 +98,13 @@ public:
#endif // def ESP32
unsigned int jsonUpdateDocumentSize = 2000;
#ifdef ESP8266
unsigned int jsonInitialDocumentSize = 2000;
unsigned int jsonChunkNumberMax = 5;
#else
unsigned int jsonInitialDocumentSize = 8000;
unsigned int jsonChunkNumberMax = 0;
#endif
bool sliderContinuous = false;
void onWsEvent(AsyncWebSocket* server, AsyncWebSocketClient* client, AwsEventType type, void* arg, uint8_t* data, size_t len);
bool captivePortal = true;