Added WS send debug logging.

This commit is contained in:
Blaz Kristan 2021-07-22 19:08:25 +02:00
parent 9e583f9ff0
commit 44e574f440

View File

@ -90,6 +90,7 @@ void sendDataWs(AsyncWebSocketClient * client)
if (!ws.count()) return;
AsyncWebSocketMessageBuffer * buffer;
DEBUG_PRINTLN(F("Sending WS data."));
{ //scope JsonDocument so it releases its buffer
DynamicJsonDocument doc(JSON_BUFFER_SIZE);
JsonObject state = doc.createNestedObject("state");