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 forsocket
andnetwork_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)
- 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.py
andminimqtt_simpletest_eth.py
examples
- Added
- 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.