mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Make new settings editable in UI
This commit is contained in:
parent
00fb213cc1
commit
693689e5af
6 changed files with 52 additions and 18 deletions
|
@ -192,12 +192,17 @@ String settings_processor(const String& var) {
|
|||
render_checkbox(content, "Remote BMS reset", settings.getBool("REMBMSRESET"), "REMBMSRESET");
|
||||
render_checkbox(content, "Use CanFD as classic CAN", settings.getBool("CANFDASCAN"), "CANFDASCAN");
|
||||
|
||||
render_checkbox(content, "Enable WiFi AP", settings.getBool("WIFIAPENABLED"), "WIFIAPENABLED");
|
||||
render_checkbox(content, "Enable MQTT", settings.getBool("MQTTENABLED"), "MQTTENABLED");
|
||||
render_checkbox(content, "Enable Home Assistant auto discovery", settings.getBool("HADISC"), "HADISC");
|
||||
|
||||
content +=
|
||||
"<div style='grid-column: span 2; text-align: center; padding-top: 10px;'><button "
|
||||
"type='submit'>Save</button></div>";
|
||||
|
||||
if (settingsUpdated) {
|
||||
content += "<p>Settings saved. Reboot to take the settings into use.</p>";
|
||||
content += "<p>Settings saved. Reboot to take the settings into use.";
|
||||
content += "<button onclick='askReboot()'>Reboot</button></p>";
|
||||
}
|
||||
|
||||
content += "</form></div></div>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue