mirror of
https://github.com/scottchiefbaker/ESP-WebOTA.git
synced 2024-08-30 18:12:33 +00:00
Add authentication example to the README
This commit is contained in:
parent
63839ab84d
commit
298bf9f561
@ -20,6 +20,11 @@ Optionally initialize the WebOTA library if you want to change the defaults. Thi
|
||||
// To use a specific port and path uncomment this line
|
||||
// Defaults are 8080 and "/webota"
|
||||
// webota.init(8888, "/update");
|
||||
|
||||
// If you call useAuth() in your setup function WebOTA will use
|
||||
// HTTP digest authentication to request credentials from the user
|
||||
// before allowing uploads
|
||||
// webota.useAuth("username", "password");
|
||||
}
|
||||
|
||||
Listen for update requests at the end of your `loop()` function:
|
||||
|
Loading…
Reference in New Issue
Block a user