mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
CI - build with arduino-cli (#9241)
Sync with GCC14 branch test scripts Remove explicit IDE, HARDWARE & LIBRARIES envirnoment in workflows in favour of script defaults Remove explicit dependency on IDE & HARDWARE path, assume arduino-cli default paths Remove explicit library install for platformio, share library path & downloaded libraries with arduino Bump ConfigFile dependencies, set ArduinoJson to v7 & update blob install script
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
#include <LittleFS.h>
|
||||
|
||||
// more and possibly updated information can be found at:
|
||||
// https://arduinojson.org/v6/example/config/
|
||||
// https://arduinojson.org/v7/example/config/
|
||||
|
||||
bool loadConfig() {
|
||||
File configFile = LittleFS.open("/config.json", "r");
|
||||
@ -21,7 +21,7 @@ bool loadConfig() {
|
||||
return false;
|
||||
}
|
||||
|
||||
StaticJsonDocument<200> doc;
|
||||
JsonDocument doc;
|
||||
auto error = deserializeJson(doc, configFile);
|
||||
if (error) {
|
||||
Serial.println("Failed to parse config file");
|
||||
@ -42,7 +42,7 @@ bool loadConfig() {
|
||||
}
|
||||
|
||||
bool saveConfig() {
|
||||
StaticJsonDocument<200> doc;
|
||||
JsonDocument doc;
|
||||
doc["serverName"] = "api.example.com";
|
||||
doc["accessToken"] = "128du9as8du12eoue8da98h123ueh9h98";
|
||||
|
||||
|
Reference in New Issue
Block a user