2025-06-17 5:31 AM
Hi everyone,
I’ve been struggling with this for several days and could really use some guidance.
I’m working on a project with the Nucleo-H743ZI, using LwIP’s built-in MQTT client over Ethernet. The basic MQTT setup on port 1883 works perfectly — I can publish and subscribe without any issues.
But now I need to secure the connection with TLS (MQTTS), and I’m stuck. I haven’t been able to find a clear example or step-by-step guide to make this work.
Here’s what I’m trying to figure out:
How to run MQTT over TLS using LwIP + mbedTLS.
How to load and manage certificates (CA/root, and possibly client certs).
How to wrap or replace the default TCP socket used by the LwIP MQTT client with a secure TLS layer.
If anyone has done this before, or has a working example project or even just the key integration steps, I’d really appreciate your help.
Thanks in advance