ArduinoJson
ArduinoJson copied to clipboard
serializeJson Does not like the format
Description It was working previously, but now erroring out
Troubleshooter's report
- The program uses ArduinoJson 7
- The issue happens at compile time
- Error says "no matching function for call to ..."
- The error is not in the list
Environment
- Microcontroller: ESP32
- Core/Framework: framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
- IDE: PlatformIO on VSCode, CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (6.10.0) > Espressif ESP32 Dev Module
Reproduction code
char post_data_string[POST_DATA_LEN];
if(content_length > 0)
{
memset(post_data_string, 0, POST_DATA_LEN);
serializeJson(post_data, post_data_string, POST_DATA_LEN);
....
}
Remarks I was changing the ArduinoJson around, trying to eliminate the heap corruptions, now cannot compile.
Dependency Graph |-- NTPClient @ 3.2.1 |-- ModbusMaster @ 2.0.1 |-- MCP23008 @ 0.3.5 |-- OTAdrive @ 1.1.33 |-- ArduinoJson @ 7.4.1 |-- FS @ 2.0.0 |-- SPIFFS @ 2.0.0 |-- WiFi @ 2.0.0 |-- WiFiClientSecure @ 2.0.0 |-- LittleFS @ 2.0.0 |-- Wire @ 2.0.0
Hi @CompunixSupport,
Please apologize for the late response. What is the error message?
Best regards, Benoit