adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
566 stars 292 forks source link

Add usage example for ESP32 SSL/TLS #192

Closed brentru closed 3 years ago

brentru commented 3 years ago

The latest ESP32 Arduino Core (1.0.6 and above) requires a call to SecureWiFiClient.setCACert() for TLS/SSL connections. The secure wifi client in previous versions didn’t require this function to be called in order to establish a connection with Adafruit IO's MQTT server.

This pull request adds a new usage example for connecting to Adafruit IO with an ESP32 (or ESP32-S2).

Addresses: https://github.com/adafruit/Adafruit_MQTT_Library/issues/191