A minimal table to compare the Espressif's MCU families.
| ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | |
|---|---|---|---|---|---|---|
| Announcement Date | 2014, August | 2016, September | 2019, September | 2020, December |
| #!/usr/bin/env python3 | |
| # python3 update of https://gist.github.com/dergachev/7028596 | |
| # Create a basic certificate using openssl: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # Or to set CN, SAN and/or create a cert signed by your own root CA: https://thegreycorner.com/pentesting_stuff/writeups/selfsignedcert.html | |
| import http.server | |
| import ssl | |
| httpd = http.server.HTTPServer(('127.0.0.1', 443), http.server.SimpleHTTPRequestHandler) |
| (originally written in 2009 and posted to livejournal! https://jdimpson.livejournal.com/6812.html | |
| The last article teaches how to use socat by comparing it first to cat then to netcat. It skimped on socat's UDP-related features, because netcat only implements a subset of them. This article picks up where the last one left off, with respect to UDP. After this article will be one more that discusses advanced socat features. | |
| It turns out there are a lot of subleties when dealing with UDP, even before multicast is mixed in. We'll abandon the comparisons to netcat, as we've exceeded what netcat can do. But first a quick reminder of one way socat does UDP. | |
| socat as a UDP server on port 11111. | |
| socat STDIO UDP-LISTEN:11111 |
| #!/usr/bin/python | |
| import BaseHTTPServer, SimpleHTTPServer, ssl, argparse, re | |
| from tempfile import mkdtemp | |
| from shutil import rmtree | |
| from contextlib import contextmanager | |
| from OpenSSL import crypto | |
| from os.path import exists, join, abspath | |
| @contextmanager | |
| def TemporaryDirectory(): |
| # Connection name | |
| connection adafruit | |
| # Secure SSL/TLS | |
| address io.adafruit.com:8883 | |
| # adjust path as approriate to point to directory with PEM encoded .crt CA files | |
| bridge_capath /etc/ssl/certs/ | |
| # Insecure | |
| # address io.adafruit.com:1883 |