mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-14 03:46:49 +03:00
Feature Request: Make the "EMS-ESP" title text in the web interface configurable.
Fixes #3110
This commit is contained in:
@@ -36,6 +36,7 @@ void WebSettings::read(WebSettings & settings, JsonObject root) {
|
||||
root["version"] = settings.version;
|
||||
root["board_profile"] = settings.board_profile;
|
||||
root["platform"] = EMSESP_PLATFORM;
|
||||
root["system_name"] = settings.system_name;
|
||||
root["locale"] = settings.locale;
|
||||
root["tx_mode"] = settings.tx_mode;
|
||||
root["ems_bus_id"] = settings.ems_bus_id;
|
||||
@@ -284,6 +285,8 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
|
||||
//
|
||||
// without checks or necessary restarts...
|
||||
//
|
||||
settings.system_name = root["system_name"] | EMSESP_DEFAULT_SYSTEM_NAME;
|
||||
|
||||
settings.trace_raw = root["trace_raw"] | EMSESP_DEFAULT_TRACELOG_RAW;
|
||||
EMSESP::trace_raw(settings.trace_raw);
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace emsesp {
|
||||
class WebSettings {
|
||||
public:
|
||||
String version = EMSESP_APP_VERSION;
|
||||
String system_name;
|
||||
String locale;
|
||||
uint8_t tx_mode;
|
||||
uint8_t ems_bus_id;
|
||||
|
||||
Reference in New Issue
Block a user