From 95ac243c2c715d6534729f558f01adc3e9a2fa5d Mon Sep 17 00:00:00 2001 From: technyon Date: Fri, 3 Mar 2023 22:16:56 +0100 Subject: [PATCH] fix configuring PIN --- Config.h | 4 ++-- Config.h.save | 6 ++++++ WebCfgServer.cpp | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 Config.h.save diff --git a/Config.h b/Config.h index 4db4a82..aad4e52 100644 --- a/Config.h +++ b/Config.h @@ -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 \ No newline at end of file +#define MQTT_CLEAN_SESSIONS false diff --git a/Config.h.save b/Config.h.save new file mode 100644 index 0000000..aad4e52 --- /dev/null +++ b/Config.h.save @@ -0,0 +1,6 @@ +#pragma once + +#define NUKI_HUB_VERSION "8.13" + +#define MQTT_QOS_LEVEL 1 +#define MQTT_CLEAN_SESSIONS false diff --git a/WebCfgServer.cpp b/WebCfgServer.cpp index 91de67a..39c7b56 100644 --- a/WebCfgServer.cpp +++ b/WebCfgServer.cpp @@ -556,7 +556,7 @@ void WebCfgServer::buildCredHtml(String &response) if(_nuki != nullptr) { - response.concat("

"); + response.concat("

"); response.concat("

NUKI Lock PIN

"); response.concat(""); printInputField(response, "NUKIPIN", "PIN Code (# to clear)", "*", 20, true); @@ -567,7 +567,7 @@ void WebCfgServer::buildCredHtml(String &response) if(_nukiOpener != nullptr) { - response.concat("

"); + response.concat("

"); response.concat("

NUKI Opener PIN

"); response.concat("
"); printInputField(response, "NUKIOPPIN", "PIN Code (# to clear)", "*", 20, true); @@ -580,7 +580,7 @@ void WebCfgServer::buildCredHtml(String &response) if(_nuki != nullptr) { response.concat("

Unpair NUKI Lock

"); - response.concat(""); + response.concat(""); String message = "Type "; message.concat(_confirmCode); message.concat(" to confirm unpair"); @@ -591,7 +591,7 @@ void WebCfgServer::buildCredHtml(String &response) if(_nukiOpener != nullptr) { response.concat("

Unpair NUKI Opener

"); - response.concat(""); + response.concat(""); String message = "Type "; message.concat(_confirmCode); message.concat(" to confirm unpair");