Boss lady
DIIDevHeads IoT Integration Server
•Created by Boss lady on 6/11/2024 in #edge-networking
Establish a secure MQTT connection to a broker using TLS on an ESP32
@Middleware & OS
Hello everyone, I have a code that I'm trying to use to establish a secure MQTT connection to a broker using TLS on an ESP32. However, I keep getting an undefined error when calling
espClient.setCACert(test_root_ca)
. In order to fix this error, I need to generate a CA certificate using
and replace "YOUR_CA_CERTIFICATE_HERE" with the generated certificate. Can anyone help me with this issue? Thank you.
Here's the code I'm using:
3 replies