refactor commands to its own class, implement rest API #506

This commit is contained in:
proddy
2020-09-18 18:13:09 +02:00
parent 0d66d97fd2
commit 80ec1859e4
27 changed files with 1049 additions and 482 deletions

View File

@@ -31,6 +31,12 @@ class DummySettings {
String jwtSecret = "ems-esp";
String ssid = "ems-esp";
String password = "ems-esp";
String localIP;
String gatewayIP;
String subnetMask;
String staticIPConfig;
String dnsIP1;
String dnsIP2;
uint16_t publish_time_boiler;
uint16_t publish_time_thermostat;
uint16_t publish_time_solar;
@@ -105,4 +111,11 @@ class EMSESPSettingsService {
private:
};
class JsonUtils {
public:
static void writeIP(JsonObject & root, const String & key, const String & ip) {
root[key] = ip;
}
};
#endif