Skip to content

Commit f24e6f9

Browse files
authored
Update webserver.py example
Add links to the rendered webpage to make it easier to urn the LED on and off
1 parent 2a402ef commit f24e6f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wireless/webserver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
<head> <title>Pico W</title> </head>
1919
<body> <h1>Pico W</h1>
2020
<p>%s</p>
21+
<a href="/light/off">Turn off</a>
22+
<br>
23+
<a href="/light/on">Turn on</a>
2124
</body>
2225
</html>
2326
"""

0 commit comments

Comments
 (0)