Make AP name configurable

This commit is contained in:
Daniel Öster 2025-09-22 15:36:41 +03:00
parent a8d74f5885
commit 69ae0385fb
4 changed files with 11 additions and 1 deletions

View file

@ -299,6 +299,10 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
return settings.getString("APPASSWORD", "123456789");
}
if (var == "APNAME") {
return settings.getString("APNAME", "BatteryEmulator");
}
if (var == "STATICIP") {
return settings.getBool("STATICIP") ? "checked" : "";
}
@ -1221,6 +1225,9 @@ const char* getCANInterfaceName(CAN_Interface interface) {
<label>Broadcast Wifi access point: </label>
<input type='checkbox' name='WIFIAPENABLED' value='on' %WIFIAPENABLED% />
<label>Access point name: </label>
<input type='text' name='APNAME' value="%APNAME%" />
<label>Access point password: </label>
<input type='text' name='APPASSWORD' value="%APPASSWORD%" />