From ec4211cdbca8771f0ec456465f3e25ee6b0edf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Kelemen?= <10376327+prampec@users.noreply.github.com> Date: Wed, 6 Jun 2018 00:07:35 +0200 Subject: [PATCH] Allow to update credentials after setup performed. --- .../ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h b/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h index b4bc2ddf04..d537e55665 100644 --- a/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h +++ b/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h @@ -25,6 +25,12 @@ class ESP8266HTTPUpdateServer void setup(ESP8266WebServer *server, const char * path, const char * username, const char * password); + void updateCredentials(const char * username, const char * password) + { + _username = (char *)username; + _password = (char *)password; + } + protected: void _setUpdaterError();