Example sketch for ESP32 and ESP8266 to communicate over a TLS secured MQTT connection utilizing the PicoMQTT library.
The sketch uses port 1883, which is not the default for TLS secure MQTT. This is because I use traefik, which handles the TLS and certification (and ACME). This can be changed to whatever you like.
- ESP32-WROOM-32E
- ESP8266 12F