From 298bf9f5611713e2a0076b000bf790dc0d810b98 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Thu, 9 Nov 2023 10:13:21 -0800 Subject: [PATCH] Add authentication example to the README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 1aad556..00ea8c0 100644 --- a/README.md +++ b/README.md @@ -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: