Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for using MiniMQTT with User-Provided Certificate/Key #9

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Add example for using MiniMQTT with User-Provided Certificate/Key #9

merged 2 commits into from
Oct 8, 2019

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
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 3.0.0 from 2.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#77 from brentru/add-certificate-handlers

Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP3xxx to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP3xxx#16 from magnusvmt/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO to 2.1.0 from 2.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_AdafruitIO#21 from brentru/close-responses
  > Merge pull request adafruit/Adafruit_CircuitPython_AdafruitIO#27 from brentru/callbacks-for-sub-unsub

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 1.1.5 from 1.1.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#9 from brentru/cert-example
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