Add the function of automatic reconnect when unexpectedly disconnected from the MQTT broker. Currently, there are two main difficulties:
- The underlying MQTTNet library does not provide a robust auto-reconnect mechanism;
- The reconnection of the Sparkplug client is not simply reconnecting to the MQTT broker, but also involves a series of operations to be performed.
Add the function of automatic reconnect when unexpectedly disconnected from the MQTT broker. Currently, there are two main difficulties: