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.