Files

  • Not Found
  • Invalid object requested. SHA must identify a commit or a tree.
Last update 6 months 1 week by Stephen Crane
Filesrf24bridge
..
data
.gitignore
Configuration.cpp
Configuration.h
Makefile
rf24bridge.ino
Configuration.cpp
#include <FS.h> #include <ArduinoJson.h> #include "Configuration.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) { Serial.println(error.c_str()); return false; } configure(doc); return true; }
Report a bug