Skip to content

BREAKING RELEASE: Add support for Ethernet and other networking interfaces

Compare
Choose a tag to compare
@brentru brentru released this 17 Mar 16:24
a9965a8

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.