add option to unpair nuki

This commit is contained in:
technyon
2022-05-24 20:41:10 +02:00
parent e93869797a
commit 939ee8b2e0
6 changed files with 75 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ private:
void buildCredHtml(String& response);
void buildConfirmHtml(String& response, const String &message, uint32_t redirectDelay = 5);
void buildConfigureWifiHtml(String& response);
void processUnpair();
void buildHtmlHeader(String& response);
void printInputField(String& response, const char* token, const char* description, const char* value, const size_t maxLength, const bool isPassword = false);
@@ -41,6 +42,7 @@ private:
void printParameter(String& response, const char* description, const char* value);
String generateConfirmCode();
void waitAndProcess(const bool blocking, const uint32_t duration);
WebServer _server;
@@ -53,5 +55,7 @@ private:
char _credPassword[20] = {0};
bool _allowRestartToPortal = false;
String _confirmCode = "----";
bool _enabled = true;
};