mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
v2.1.6 Update
* Added Virtual Remote * Added Dry Contact * Fixed processed flag * Added backup and restore options
This commit is contained in:
parent
7b255e3acb
commit
4ad2cf7567
17 changed files with 1206 additions and 378 deletions
|
|
@ -3,12 +3,19 @@
|
|||
#ifndef configsettings_h
|
||||
#define configsettings_h
|
||||
|
||||
#define FW_VERSION "v2.1.5"
|
||||
#define FW_VERSION "v2.1.6"
|
||||
enum DeviceStatus {
|
||||
DS_OK = 0,
|
||||
DS_ERROR = 1,
|
||||
DS_FWUPDATE = 2
|
||||
};
|
||||
struct restore_options_t {
|
||||
bool settings = false;
|
||||
bool shades = false;
|
||||
bool network = false;
|
||||
bool transceiver = false;
|
||||
void fromJSON(JsonObject &obj);
|
||||
};
|
||||
|
||||
class BaseSettings {
|
||||
public:
|
||||
|
|
@ -50,6 +57,7 @@ class WifiSettings: BaseSettings {
|
|||
bool save();
|
||||
bool load();
|
||||
void print();
|
||||
|
||||
};
|
||||
class EthernetSettings: BaseSettings {
|
||||
public:
|
||||
|
|
@ -153,6 +161,8 @@ class ConfigSettings: BaseSettings {
|
|||
void emitSockets();
|
||||
void emitSockets(uint8_t num);
|
||||
bool toJSON(DynamicJsonDocument &doc);
|
||||
uint16_t calcSettingsRecSize();
|
||||
uint16_t calcNetRecSize();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue