mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
.
This commit is contained in:
parent
05b462d109
commit
e727a98aae
@ -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);
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user