mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Make AP name configurable
This commit is contained in:
parent
a8d74f5885
commit
69ae0385fb
4 changed files with 11 additions and 1 deletions
|
@ -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%" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue