mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-11-12 13:30:20 +01:00
esp-mqtt library is unaware of underlying network connectivity states and current auto reconnect mechanism is built around timed retry attempts every MQTT_RECONNECT_TIMEOUT_MS. As application code usually keeps track of network connectity state export a new function that application can use to request a forced reconnect attempt as soon as connected to the network.