22 lines
378 B
C++
22 lines
378 B
C++
#ifndef CONFIG_HPP
|
|
#define CONFIG_HPP
|
|
|
|
#include <Arduino.h>
|
|
#include <ArduinoJson.h>
|
|
|
|
class Config {
|
|
public:
|
|
void Init();
|
|
void Save();
|
|
|
|
uint8_t mac_address[6] = {0x34, 0x85, 0x18, 0xa9, 0x3d, 0xfc};
|
|
uint32_t beacon_id = -1;
|
|
|
|
private:
|
|
void Load();
|
|
void SetDefaults();
|
|
JsonDocument conf_json;
|
|
};
|
|
|
|
extern Config config;
|
|
#endif |