* reorg to include core and librany deps in project using submodules * added script to insure submodules and such are setup * added OTA update support and started on syslog logging * added syslog logging support & Config saving via SPIFFS/Json file * start travis builds * DebugLevel * added eagle designs * added enclosure * update README
37 lines
546 B
C++
37 lines
546 B
C++
/*
|
|
* Config.h
|
|
*
|
|
* Created on: Jun 10, 2018
|
|
* Author: chris.l
|
|
*/
|
|
|
|
#ifndef CONFIG_H_
|
|
#define CONFIG_H_
|
|
|
|
#include "Arduino.h"
|
|
|
|
class ConfigImpl;
|
|
|
|
class Config
|
|
{
|
|
public:
|
|
Config();
|
|
virtual ~Config();
|
|
|
|
bool begin();
|
|
|
|
bool load();
|
|
void save();
|
|
|
|
const char* getSyslogHost();
|
|
void setSyslogHost(const char* host);
|
|
uint16_t getSyslogPort();
|
|
void setSyslogPort(uint16_t port);
|
|
|
|
private:
|
|
char _syslog_host[64];
|
|
uint16_t _syslog_port;
|
|
};
|
|
|
|
#endif /* CONFIG_H_ */
|