Skip to content

Releases: adafruit/Adafruit_CircuitPython_MiniMQTT

Change socket.write to socket.send

29 Aug 19:45
57b5d57
Compare
Choose a tag to compare

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

23 Aug 22:34
003962e
Compare
Choose a tag to compare

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

16 Aug 17:20
25b344a
Compare
Choose a tag to compare

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

15 Aug 14:12
801b3a3
Compare
Choose a tag to compare

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 the ping() method) to the server if the time elapsed is greater than or equal to the provided keep_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

12 Aug 21:34
f3c0cdf
Compare
Choose a tag to compare

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.

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!

16 Jul 16:45
fd26c93
Compare
Choose a tag to compare

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.