Skip to content

Instantly share code, notes, and snippets.

@CelliesProjects
CelliesProjects / structToFile.ino
Last active September 1, 2023 18:04
Read and write a c++ struct to a file. Arduino IDE. ESP32.
/*
* EXAMPLE READING AND WRITING A C++ STRUCT TO A FILE
*/
#include <FS.h>
#include <FFat.h>
const char *fileName = "/somefile.txt";
struct aStruct {
char someString[11];
@kenci
kenci / alarmsystem.ino
Last active January 23, 2023 13:38
ESP8266 NTP Timeserver with Alarms
/*
* alarmsystem.ino
*
* This sketch uses the ESP8266WiFi library
*/
#include <TimeLib.h>
#include <Time.h>
#include <TimeAlarms.h>
#include <ESP8266WiFi.h>