config.ino (301B) download
1#include "include/config.h"
2
3FlashStorage(config_flash, configuration);
4
5configuration config_default{
6 true, // valid
7 "", // token
8 "", // domain,
9};
10
11configuration config;
12
13void configuration::open() {
14 *this = config_flash.read();
15}
16
17void configuration::save() {
18 config_flash.write(*this);
19}