diff --git a/ESP32_Temperture-Node/README.md b/ESP32_Temperture-Node/README.md index d0f831f99..e3cbf48f9 100644 --- a/ESP32_Temperture-Node/README.md +++ b/ESP32_Temperture-Node/README.md @@ -45,4 +45,13 @@ keyfile /mosquitto/config/certs/esp32.key allow_anonymous true persistence true persistence_location /srv/dev-disk-by-label/docker/columes/mosquitto/data/ +``` + +## ESP32 MQTT Client + +
The two lines of code shown below are most crucial as they are responsible for connecting ESP32 to the MQTT broker.
+ +```C +espClientSSL.setCACert(NODE_CERT_CA); +connection.setServer(mqtt_server, 8883); ``` \ No newline at end of file