mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Add missing settings
This commit is contained in:
parent
5fcbb68dd1
commit
ffd3e45a96
5 changed files with 40 additions and 7 deletions
|
@ -459,6 +459,8 @@ void init_webserver() {
|
|||
} else if (p->name() == "SHUNTCOMM") {
|
||||
auto type = static_cast<comm_interface>(atoi(p->value().c_str()));
|
||||
settings.saveUInt("SHUNTCOMM", (int)type);
|
||||
} else if (p->name() == "HOSTNAME") {
|
||||
settings.saveString("HOSTNAME", p->value().c_str());
|
||||
} else if (p->name() == "MQTTSERVER") {
|
||||
settings.saveString("MQTTSERVER", p->value().c_str());
|
||||
} else if (p->name() == "MQTTPORT") {
|
||||
|
@ -799,7 +801,7 @@ String processor(const String& var) {
|
|||
content += "</style>";
|
||||
|
||||
// Compact header
|
||||
content += "<h2>" + String(ssidAP.c_str()) + "</h2>";
|
||||
content += "<h2>Battery Emulator</h2>";
|
||||
|
||||
// Start content block
|
||||
content += "<div style='background-color: #303E47; padding: 10px; margin-bottom: 10px; border-radius: 50px'>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue