Update webserver.py example

Add links to the rendered webpage to make it easier to urn the LED on and off
lurch-patch-1
Andrew Scheller 2025-03-18 13:58:38 +00:00 zatwierdzone przez GitHub
rodzic 2a402efc9b
commit f24e6f9d44
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -18,6 +18,9 @@ html = """<!DOCTYPE html>
<head> <title>Pico W</title> </head> <head> <title>Pico W</title> </head>
<body> <h1>Pico W</h1> <body> <h1>Pico W</h1>
<p>%s</p> <p>%s</p>
<a href="/light/off">Turn off</a>
<br>
<a href="/light/on">Turn on</a>
</body> </body>
</html> </html>
""" """