This implements a simple HTTP and HTTPS server pair that serve a static HTML file. The HTTP server uses adafruit_httpserver in a straightforward, basic way. The HTTPS server works by wrapping a socket pool object in an object that wraps all sockets in SSLSockets. There are throwaway, self-signed certificates for testing under src/certificates. However, HTTPS is very slow. Probably need an optimized AES implementation.
3 lines
117 B
HTML
3 lines
117 B
HTML
<!DOCTYPE html>
|
|
<title>Hello world · Raspberry Pi Pico W</title>
|
|
<p>Hello world from Raspberry Pi Pico W!</p>
|