Skip to content

Conversation

brentru
Copy link
Member

@brentru brentru commented Feb 1, 2021

This pull request:

  • Adds compatibility and examples for ESP32-S2 and "Native Networking"
  • Adds compatibility and examples for usage with CPython
  • Provides backwards-compatible "legacy" support for ESP32SPI, Ethernet socket interface.
  • Removes dependency for Adafruit_CircuitPython_Logging to be installed, a logger may be passed into a MQTT object.
  • Adds a username_pw_set method to dynamically set username and password outside of client initialization.
  • Reorganizes examples into folders, categorized by network interface
  • connect() may now accept a keepalive time
  • loop() may now accept a timeout in seconds.

NOTE: "Native Socket" (ESP32-S2) is only supported in CircuitPython 6.2.0b1 or newer

Addresses:
#58
#43
https://github.com/brentru/Adafruit_CircuitPython_MiniMQTT/pull/2
adafruit/Adafruit_CircuitPython_AzureIoT#21
adafruit/Adafruit_CircuitPython_AdafruitIO#52

This library has been tested on:
Adafruit CircuitPython 6.2.0-beta.1 on 2021-01-27; Adafruit Metro ESP32S2 with ESP32S2, Native Networking
Adafruit CircuitPython 6.0.1 on 2020-12-28; Adafruit Feather M4 Express with samd51j19 with Ethernet FeatherWing
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit PyPortal with samd51j20, ESP32SPI
CPython 3.9.1

brentru added 30 commits November 16, 2020 14:30
@brentru brentru requested review from a team and makermelissa February 1, 2021 22:07
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works great. That's a bonus that it doesn't require logging anymore.

@brentru
Copy link
Member Author

brentru commented Feb 3, 2021

Thanks for reviewing and testing

@brentru brentru merged commit 99a6099 into adafruit:master Feb 3, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 4, 2021
rtwfroody pushed a commit to rtwfroody/Adafruit_CircuitPython_MiniMQTT that referenced this pull request Sep 18, 2022
Add ESP32-S2 (Native Networking) and CPython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants