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

@@ -684,7 +684,7 @@ Nuki::BatteryType NukiOpenerWrapper::batteryTypeToEnum(const char* str)
void NukiOpenerWrapper::onConfigUpdateReceived(const char *value)
{
DynamicJsonDocument jsonResult(2048);
JsonDocument jsonResult;
char _resbuf[2048];
if(_nukiOpener.getSecurityPincode() == 0)
@@ -695,7 +695,7 @@ void NukiOpenerWrapper::onConfigUpdateReceived(const char *value)
return;
}
DynamicJsonDocument json(2048);
JsonDocument json;
DeserializationError jsonError = deserializeJson(json, value);
if(jsonError)
@@ -1336,7 +1336,7 @@ void NukiOpenerWrapper::onKeypadJsonCommandReceived(const char *value)
return;
}
DynamicJsonDocument json(2048);
JsonDocument json;
DeserializationError jsonError = deserializeJson(json, value);
if(jsonError)