Skip to content

Commit

Permalink
Add authentication example to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Nov 9, 2023
1 parent 63839ab commit 298bf9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 298bf9f

Please sign in to comment.