Network management improvements, KeepAlive
Improvements for KeepAlive
keep_aliveis now an init kwarg- The
loopmethod 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_alivevalue.
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.