Why ArduinoJson is slow?
This page covers ArduinoJson 5.13.5, consider upgrading to version 6.21.2.
First of all, ArduinoJson is not slow by itself. It’s slow when used in conjunction with the
WifiClient from the ESP8266 core.
The problem is that there is no buffer between ArduinoJson and the WifiClient.
To solve this, either:
- Enable the Nagle algorithm on
- Serialize to a buffer and send the whole buffer in one shot.
- Insert a BufferedPrint proxy between ArduinoJson and