Releases: adafruit/Adafruit_CircuitPython_MiniMQTT
2.1.2 - Added Black check, reran Black with Python 3 target.
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
This release:
- Removes
debug=Trueparameter 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
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
.pylintrcfile 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
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 forsocketandnetwork_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.pyfor an example)
- Dependency for network manager replaced by a global socket and interface. Uses same syntax as Adafruit_CircuitPython_Requests:
- 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.pyandminimqtt_simpletest_eth.pyexamples
- Added
- Fixes
examples/minimqtt_pub_sub_pyportal.pyexample
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
- Added new example for using the
Adafruit_CircuitPython_PyPortalmodule 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
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
- #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
- 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
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.
Change socket.write to socket.send
Changes calls from socket.write to socket.send 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.