I don't understand the Json library particularly well so maybe I'm wrong that this would help, but here's something that might give the esp32 a bit less work to do.
convert the json document (dataDoc) to a globally declared String right after updating the data in the json document. Then when the data is requested the String can be sent right away without doing the string conversion each time
I don't understand the Json library particularly well so maybe I'm wrong that this would help, but here's something that might give the esp32 a bit less work to do.
convert the json document (
dataDoc
) to a globally declared String right after updating the data in the json document. Then when the data is requested the String can be sent right away without doing the string conversion each time