This commit is contained in:
Alexander 2024-07-03 23:50:25 -04:00
parent 05b462d109
commit e727a98aae

View File

@ -45,4 +45,13 @@ keyfile /mosquitto/config/certs/esp32.key
allow_anonymous true allow_anonymous true
persistence true persistence true
persistence_location /srv/dev-disk-by-label/docker/columes/mosquitto/data/ persistence_location /srv/dev-disk-by-label/docker/columes/mosquitto/data/
```
## ESP32 MQTT Client
<p>The two lines of code shown below are most crucial as they are responsible for connecting ESP32 to the MQTT broker.</p>
```C
espClientSSL.setCACert(NODE_CERT_CA);
connection.setServer(mqtt_server, 8883);
``` ```