Releases: adafruit/Adafruit_CircuitPython_MiniMQTT
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.
Expose Attributes
Exposing the following MiniMQTT private attributes as public attributes:
user
,keepalive
,password
,client_id
,logger
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-minimqtt
.
Read the docs for info on how to use it.
Fix CONNACK IndexError
Fixes an IndexError
caused by a non-authorized CONNACK packet returned by a broker.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-minimqtt
.
Read the docs for info on how to use it.
Network management improvements, KeepAlive
Improvements for KeepAlive
keep_alive
is now an init kwarg- The
loop
method now checks the time and sends a PINGREQ (expecting a PINGRESP, this is handled in theping()
method) to the server if the time elapsed is greater than or equal to the providedkeep_alive
value.
Network Management Improvements
*loop_forever
now calls loop
instead of _wait_for_msg
. Also now handles network control, for both the socket and the NetworkManager (currently only the WiFiManager) objects.
- Properties for network management (
is_wifi_connected
,is_sock_connected
) have been added as well as additional management for both the socket and ESP32SPI wifi module (reconnect_socket
,reconnect_wifi
)
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-minimqtt
.
Read the docs for info on how to use it.
Fix CONNECT for long password/username/client identifiers
This release fixes connect()
for use with large (>127 bytes) payloads such as a long password (JSON Web Tokens), client identifier, or last-will message.
- The remaining length calculation previously used by this library has been removed in favor of using the algorithm described by the MQTT V3.1.1 specification (https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718030).
- Default
keepalive
value increased to 60 seconds to ensure the MQTT broker rejects incorrect connections, instead of hanging.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-minimqtt
.
Read the docs for info on how to use it.
Initial Release!
Initial release of MiniMQTT, a MQTT Client Library for CircuitPython.
This library aims to be independent of network hardware. However, at this time the MiniMQTT library is only available for CircuitPython devices connected over WiFi.
This library is based off previous work performed by pfalcon on uMQTT (and the umqtt port to ESP32SPI by beachbc). MiniMQTT's primary difference from uMQTT is it uses calling conventions and method names similar to The Eclipse Foundation's Paho.Mqtt.Python.
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip install adafruit-circuitpython-minimqtt
.
Read the docs for info on how to use it.