Skip to content

Commit 8cda965

Browse files
prampecd-a-v
authored andcommitted
Allow to update credentials after setup performed. (#4789)
1 parent 9db33e1 commit 8cda965

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/ESP8266HTTPUpdateServer/src/ESP8266HTTPUpdateServer.h

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ class ESP8266HTTPUpdateServer
2525

2626
void setup(ESP8266WebServer *server, const char * path, const char * username, const char * password);
2727

28+
void updateCredentials(const char * username, const char * password)
29+
{
30+
_username = (char *)username;
31+
_password = (char *)password;
32+
}
33+
2834
protected:
2935
void _setUpdaterError();
3036

0 commit comments

Comments
 (0)