adafruit / Adafruit_IO_Arduino

Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
Other
208 stars 108 forks source link

Update for ESP32 #152

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 updates the AdafruitIO_ESP32. wifi adapter files to include the root certificate and updated code.

Similar to https://github.com/adafruit/Adafruit_MQTT_Library/pull/192

brentru commented 3 years ago

This has been tested with the pubsub example and an Adafruit FunHouse ESP32-S2

brentru commented 3 years ago

@ladyada Could you review? Thanks!