Skip to content

Commit

Permalink
fix configuring PIN
Browse files Browse the repository at this point in the history
  • Loading branch information
technyon committed Mar 3, 2023
1 parent 28c4745 commit 95ac243
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define NUKI_HUB_VERSION "8.12"
#define NUKI_HUB_VERSION "8.13"

#define MQTT_QOS_LEVEL 1
#define MQTT_CLEAN_SESSIONS false
#define MQTT_CLEAN_SESSIONS false
6 changes: 6 additions & 0 deletions Config.h.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#define NUKI_HUB_VERSION "8.13"

#define MQTT_QOS_LEVEL 1
#define MQTT_CLEAN_SESSIONS false
8 changes: 4 additions & 4 deletions WebCfgServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void WebCfgServer::buildCredHtml(String &response)

if(_nuki != nullptr)
{
response.concat("<br><br><FORM ACTION=method=get >");
response.concat("<br><br><FORM method=\"post\" ACTION=savecfg >");
response.concat("<h3>NUKI Lock PIN</h3>");
response.concat("<table>");
printInputField(response, "NUKIPIN", "PIN Code (# to clear)", "*", 20, true);
Expand All @@ -567,7 +567,7 @@ void WebCfgServer::buildCredHtml(String &response)

if(_nukiOpener != nullptr)
{
response.concat("<br><br><FORM ACTION=method=get >");
response.concat("<br><br><FORM method=\"posst\" ACTION=savecfg >");
response.concat("<h3>NUKI Opener PIN</h3>");
response.concat("<table>");
printInputField(response, "NUKIOPPIN", "PIN Code (# to clear)", "*", 20, true);
Expand All @@ -580,7 +580,7 @@ void WebCfgServer::buildCredHtml(String &response)
if(_nuki != nullptr)
{
response.concat("<br><br><h3>Unpair NUKI Lock</h3>");
response.concat("<form method=\"get\" action=\"/unpairlock\">");
response.concat("<form method=\"post\" action=\"/unpairlock\">");
String message = "Type ";
message.concat(_confirmCode);
message.concat(" to confirm unpair");
Expand All @@ -591,7 +591,7 @@ void WebCfgServer::buildCredHtml(String &response)
if(_nukiOpener != nullptr)
{
response.concat("<br><br><h3>Unpair NUKI Opener</h3>");
response.concat("<form method=\"get\" action=\"/unpairopener\">");
response.concat("<form method=\"post\" action=\"/unpairopener\">");
String message = "Type ";
message.concat(_confirmCode);
message.concat(" to confirm unpair");
Expand Down

0 comments on commit 95ac243

Please sign in to comment.