circuitpython-https-server/scripts/repl.sh
James Ide 86009ef6ae
Add an example server (very slow)
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.
2023-03-01 19:55:58 -08:00

8 lines
202 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
device=$(ls -1 -t /dev/tty.usbmodem*)
# Reattach to an existing session if one exists; otherwise create a new one
screen -D -R -S circuitpython "$device" 115200