Feature: Migrated ArduinoJson 6 to 7

This commit is contained in:
Thomas Basler
2024-04-02 23:23:12 +02:00
parent e7a9c96b72
commit 2e3125fe8d
26 changed files with 149 additions and 152 deletions

View File

@@ -69,9 +69,9 @@ void Utils::restartDtu()
ESP.restart();
}
bool Utils::checkJsonAlloc(const DynamicJsonDocument& doc, const char* function, const uint16_t line)
bool Utils::checkJsonAlloc(const JsonDocument& doc, const char* function, const uint16_t line)
{
if (doc.capacity() == 0) {
if (doc.overflowed()) {
MessageOutput.printf("Alloc failed: %s, %d\r\n", function, line);
return false;
}