mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
refactor commands to its own class, implement rest API #506
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user