mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Add APpassword to settings page
This commit is contained in:
parent
577a353285
commit
d8d64ee16c
3 changed files with 10 additions and 1 deletions
|
@ -291,6 +291,10 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
|
|||
return settings.getBool("WIFIAPENABLED", wifiap_enabled) ? "checked" : "";
|
||||
}
|
||||
|
||||
if (var == "APPASSWORD") {
|
||||
return settings.getString("APPASSWORD", "123456789");
|
||||
}
|
||||
|
||||
if (var == "STATICIP") {
|
||||
return settings.getBool("STATICIP") ? "checked" : "";
|
||||
}
|
||||
|
@ -1148,6 +1152,9 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
<label>Broadcast Wifi access point: </label>
|
||||
<input type='checkbox' name='WIFIAPENABLED' value='on' %WIFIAPENABLED% />
|
||||
|
||||
<label>Access point password: </label>
|
||||
<input type='text' name='APPASSWORD' value="%APPASSWORD%" />
|
||||
|
||||
<label>Wifi channel 0-14: </label>
|
||||
<input name='WIFICHANNEL' type='text' value="%WIFICHANNEL%" pattern="^[0-9]+$" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue