Skip to content

Conversation

@brentru
Copy link
Member

@brentru brentru commented Oct 8, 2019

Adding usage example for establishing a secure MQTT connection with a server, provided a user-defined X.509 certificate and private key.

NOTE: This example requires nina-fw v1.4.0 or above. If you do not know how to upgrade the firmware on your ESP32, follow the learn guide on the Adafruit Learning System for this topic.

Example of usage, connecting to AWS IoT

code.py output:
Attempting to connect to GATEWAYNAME-ats.iot.us-east-2.amazonaws.com
Sending connect to broker
32 <--MQTT Auth Accepted by Broker
Connected to MQTT Broker!
Flags: 0
 RC: 0
Subscribing to test/topic

@brentru brentru added the enhancement New feature or request label Oct 8, 2019
@brentru brentru requested a review from a team October 8, 2019 21:13
@ladyada ladyada merged commit 8a1c8b6 into adafruit:master Oct 8, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 9, 2019
rtwfroody pushed a commit to rtwfroody/Adafruit_CircuitPython_MiniMQTT that referenced this pull request Sep 18, 2022
Add example for using MiniMQTT with User-Provided Certificate/Key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants