Files

  • Not Found
The connected project is not found, it might be deleted.
Last update 3 years 11 months by Stephen Crane
Files
data
cad
.gitignore
LICENSE
Makefile
PSU.ino
README.md
configuration.cpp
configuration.h
dbg.h
label.cpp
label.h
rssi.h
smoother.h
stator.h
configuration.cpp
#include <FS.h> #include <ArduinoJson.h> #include "configuration.h" #include "dbg.h" bool Configuration::read_file(const char *filename) { File f = SPIFFS.open(filename, "r"); if (!f) return false; DynamicJsonDocument doc(JSON_OBJECT_SIZE(11) + 210); auto error = deserializeJson(doc, f); f.close(); if (error) { ERR(print(F("config: "))); ERR(println(error.c_str())); return false; } configure(doc); return true; }
Report a bug