Releases: adafruit/Adafruit_CircuitPython_MiniMQTT
Publish large payloads
This release:
- #42 Allows publishing for payloads larger than 127 bytes to a MQTT broker.
- Adds a more verbose error for publishing with a QoS of 2 (unsupported by this client 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.
Update examples
This release:
- #41 Fixes library file inclusion path in code examples.
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.
Topic-specific callback methods
This release adds:
add_topic_callback
method: Registers a callback_method for a specific MQTT topic.remove_topic_callback
method: Removes a registered callback method
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 CHANGE: Updated Last Will and Testament
This release adds:
- BREAKING:
last_will
method renamed towill_set
to mirror Paho-MQTT.message
kwarg changed topayload
- LWT properties set in init instead of directly calling
will_set
- #36 Updates to the
will_set
method to correctly set payload data as bytes.
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.
Updated Cellular Examples
This release adds:
- #34 Updated cellular examples for FONA 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.
Fix Hostname URL
This release:
- Patches broker hostname issue (#25) requiring broker URL starting with HTTP/HTTPS. Drops dependency for URL prefix.
- Removed
try/except
block which improperly handles IP address strings - Removed module's
TCP_Mode
/TLS_Mode
constants in favor of using the interface'sTCP_Mode
orTLS_MODE
. - Updated examples to reflect above updates
- Updated
_cellular
and_ethernet
examples to use MQTT, unencrypted (port1883
) broker ports.
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 Cellular Usage Examples
This release:
- #32 Adds examples for using this library with the Adafruit FONA 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.
Fix reconnect and infinite loop
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.
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=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.