Arduino-Storage
External Memory Storage library for Arduino
Persistent.ino File Reference
#include "Storage.h"
#include "Driver/EEPROM.h"
Include dependency graph for Persistent.ino:

Go to the source code of this file.

Classes

struct  config_t
 

Macros

#define PERSISTENT(v)   persistent_ ## v
 

Functions

Storage::Cache PERSISTENT() reset (eeprom,&reset, sizeof(reset))
 
Storage::Cache PERSISTENT() config (eeprom,&config, sizeof(config))
 
void setup ()
 
void loop ()
 

Variables

EEPROM eeprom
 
bool reset
 
config_t config
 
static const char ssid [] = "Wi-Fi SSID"
 
static const uint8_t mac [6] = { 0xde, 0xad, 0xbe, 0xef, 0xfe, 0xed }
 

Macro Definition Documentation

#define PERSISTENT (   v)    persistent_ ## v

Definition at line 15 of file Persistent.ino.

Function Documentation

Storage::Cache PERSISTENT() config ( eeprom  ,
config,
sizeof(config)   
)
void loop ( )

Definition at line 57 of file Persistent.ino.

Storage::Cache PERSISTENT() reset ( eeprom  ,
reset,
sizeof(reset)   
)
void setup ( )

Definition at line 29 of file Persistent.ino.

Variable Documentation

config_t config

Definition at line 22 of file Persistent.ino.

EEPROM eeprom

Definition at line 5 of file Persistent.ino.

const uint8_t mac[6] = { 0xde, 0xad, 0xbe, 0xef, 0xfe, 0xed }
static

Definition at line 27 of file Persistent.ino.

bool reset

Definition at line 18 of file Persistent.ino.

const char ssid[] = "Wi-Fi SSID"
static

Definition at line 26 of file Persistent.ino.