diff --git a/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h b/libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h index b4bc2ddf0..d537e5566 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();