Update to ArduinoJson 7.0.4

This commit is contained in:
iranl
2024-04-19 14:44:01 +02:00
parent 1378732081
commit 81be0a689a
444 changed files with 10842 additions and 9422 deletions

View File

@@ -216,7 +216,7 @@ void NetworkOpener::publishKeyTurnerState(const NukiOpener::OpenerState& keyTurn
char str[50];
memset(&str, 0, sizeof(str));
DynamicJsonDocument json(_bufferSize);
JsonDocument json;
lockstateToString(keyTurnerState.lockState, str);
@@ -342,7 +342,7 @@ void NetworkOpener::publishAuthorizationInfo(const std::list<NukiOpener::LogEntr
bool authFound = false;
memset(authName, 0, sizeof(authName));
DynamicJsonDocument json(_bufferSize);
JsonDocument json;
int i = 5;
for(const auto& log : logEntries)
@@ -564,7 +564,7 @@ void NetworkOpener::publishKeypad(const std::list<NukiLock::KeypadEntry>& entrie
{
uint index = 0;
DynamicJsonDocument json(_bufferSize);
JsonDocument json;
for(const auto& entry : entries)
{
@@ -594,7 +594,7 @@ void NetworkOpener::publishKeypad(const std::list<NukiLock::KeypadEntry>& entrie
jsonEntry["allowedUntil"] = allowedUntilDT;
uint8_t allowedWeekdaysInt = entry.allowedWeekdays;
JsonArray weekdays = jsonEntry.createNestedArray("allowedWeekdays");
JsonArray weekdays = jsonEntry["allowedWeekdays"].to<JsonArray>();
while(allowedWeekdaysInt > 0) {
if(allowedWeekdaysInt >= 64)