Skip to content

Releases: adafruit/Adafruit_CircuitPython_MiniMQTT

Fix reconnect and infinite loop

21 Apr 14:28
2c7f3c3
Compare
Choose a tag to compare

This release:

  • #26 Fixes a bug where the broker string is modified, not allowing reconnect to work. Thanks @jimbobbennett
  • #28 Fixes a bug where reconnect is stuck in an infinite loop. Thanks @jimbobbennett

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

2.1.2 - Added Black check, reran Black with Python 3 target.

10 Apr 18:13
bd24155
Compare
Choose a tag to compare

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

Fix AIO WiFi Example

18 Mar 20:35
dd1e3f2
Compare
Choose a tag to compare

This release:

  • Removes debug=True parameter in AIO WiFi example.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

2.1.0 - Upgrade to latest Pylint, implement Black formatting

17 Mar 23:00
a9965a8
Compare
Choose a tag to compare

We have upgraded Pylint checks to use the latest version of Pylint and implemented usage of Black Python formatting. This does not change the functionality of the code - it is designed to bring it up to current standards and make it more readable.

  • Remove pinned Pylint version number from build.yml file
  • Synced .pylintrc file to match Adafruit standard
  • Ran upgraded Pylint and applied any changes or new disables necessary
  • Ran Black formatter and allowed application of changes across entire repo

For more information on using Pylint and Black on your code, check out this guide on working with Pylint and Black

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

BREAKING RELEASE: Add support for Ethernet and other networking interfaces

17 Mar 16:24
a9965a8
Compare
Choose a tag to compare

This release:

  • Removes requirement for a network interface
    • Dependency for network manager replaced by a global socket and interface. Uses same syntax as Adafruit_CircuitPython_Requests: mqtt.set_socket(socket_type, interface_type)
    • BREAKS __init__, removes dependency for socket and network_manager
    • Deprecates loop_forever (noted for now, removing on next major release) in favor of having user-code handle network interface management (see: minimqtt_pub_sub_blocking.py for an example)
  • Removes methods which handle the network interface: is_wifi_connected, is_sock_connected, reconnect_socket, reconnect_wifi
  • Automatically assigns socket port (secure/insecure) based on http/https in url.
  • Adds support for ethernet interfaces (via https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k)
    • Added minimqtt_adafruitio_eth.py and minimqtt_simpletest_eth.py examples
  • Fixes examples/minimqtt_pub_sub_pyportal.py example

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

Add PyPortal MiniMQTT Example

31 Jan 23:17
eb0c466
Compare
Choose a tag to compare
  • Added new example for using the Adafruit_CircuitPython_PyPortal module with this library.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

1.1.7 - Changed CI from Travis to GitHub Actions

24 Jan 01:46
Compare
Choose a tag to compare

This release includes:

  • Migrating this repository from Travis to GitHub Actions. This has no effect on the behavior of the code itself.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

Fix Client Identifier Generation Method

06 Jan 18:48
4ef5c3e
Compare
Choose a tag to compare
  • #19 Use time.monotonic() instead of microcontroller.cpu.uid for random seed to create client ID

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-minimqtt.

Read the docs for info on how to use it.

Add usage example for connecting with a broker using CA certificate and user certificate/key

09 Oct 16:00
8a1c8b6
Compare
Choose a tag to compare
  • Added 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.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.

Change socket.read to socket.recv

29 Aug 23:53
118b037
Compare
Choose a tag to compare

Changes calls from socket.read to socket.recv to match the latest ESP32SPI release.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.