Closed softwarecrash closed 1 year ago
have found the solution
just for other:
size_t len = measureJson(liveJson);
AsyncWebSocketMessageBuffer *buffer = ws.makeBuffer(len);
if (buffer)
{
serializeJson(liveJson, (char *)buffer->get(), len + 1);
wsClient->text(buffer);
}
Hello,
i have tried the example
but it looks something has changed in arduinoJson 6, can anyone provide me a actual example for a dynamicjson document and write direct to the buffer? thanks