Changes for ArduinoJson7

This commit is contained in:
iranl
2024-04-20 14:30:18 +02:00
parent 50b23f2ab2
commit 747ecdb629
6 changed files with 45 additions and 45 deletions

View File

@@ -621,7 +621,7 @@ Nuki::BatteryType NukiWrapper::batteryTypeToEnum(const char* str)
void NukiWrapper::onConfigUpdateReceived(const char *value)
{
DynamicJsonDocument jsonResult(2048);
JsonDocument jsonResult;
char _resbuf[2048];
if(_nukiLock.getSecurityPincode() == 0)
@@ -632,7 +632,7 @@ void NukiWrapper::onConfigUpdateReceived(const char *value)
return;
}
DynamicJsonDocument json(2048);
JsonDocument json;
DeserializationError jsonError = deserializeJson(json, value);
if(jsonError)
@@ -1318,7 +1318,7 @@ void NukiWrapper::onKeypadJsonCommandReceived(const char *value)
return;
}
DynamicJsonDocument json(2048);
JsonDocument json;
DeserializationError jsonError = deserializeJson(json, value);
if(jsonError)