Skip to content

Commit 3d8575f

Browse files
committed
ArduinoJson deprecation update
1 parent 43d01f4 commit 3d8575f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ bool BootstrapManager::isWifiConfigured() {
519519
return true;
520520
} else {
521521
JsonDocument mydoc = readLittleFS(F("setup.json"));
522-
if (mydoc.containsKey(F("qsid"))) {
522+
if (mydoc[F("qsid")].is<JsonVariant>()) {
523523
Serial.println(F("Storage OK, restoring WiFi and MQTT config."));
524524
microcontrollerIP = Helpers::getValue(mydoc["microcontrollerIP"]);
525525
qsid = Helpers::getValue(mydoc[F("qsid")]);

0 commit comments

Comments
 (0)