allow to pair as app

This commit is contained in:
technyon
2022-09-25 21:56:09 +02:00
parent f6bdf4ce9d
commit 50c0eb57f9
5 changed files with 26 additions and 5 deletions

View File

@@ -311,6 +311,11 @@ bool WebCfgServer::processArgs(String& message)
_preferences->putBool(preference_gpio_locking_enabled, (value == "1"));
configChanged = true;
}
else if(key == "REGAPP")
{
_preferences->putBool(preference_register_as_app, (value == "1"));
configChanged = true;
}
else if(key == "LOCKENA")
{
_preferences->putBool(preference_lock_enabled, (value == "1"));
@@ -606,6 +611,7 @@ void WebCfgServer::buildNukiConfigHtml(String &response)
response.concat("<h3>Advanced NUKI Configuration</h3>");
response.concat("<table>");
printCheckBox(response, "REGAPP", "Register as app (on: register as app, off: register as bridge; needs re-pairing if changed)", _preferences->getBool(preference_register_as_app));
printInputField(response, "LSTINT", "Query interval lock state (seconds)", _preferences->getInt(preference_query_interval_lockstate), 10);
printInputField(response, "BATINT", "Query interval battery (seconds)", _preferences->getInt(preference_query_interval_battery), 10);
if(_nuki->hasKeypad())