======mqtt_disconnect======
WMMEGA FW >= 2.1161
Disconnect the current MQTT connection
====Description====
mqtt_disconnect ( )
This function disconnects the current MQTT connection, allowing you to resubscribe in case of a connection issue. For information on connection parameters see [[how_tos:mqtt_configuration|MQTT Configuration]]
====Parameters====
None
====Return Values====
None
====Example====
mqtt_disconnect();
?>
====See Also====
[[mqtt_publish()]] - Publish a message to MQTT
[[mqtt_subscribe()]] - Subscribe to MQTT messages
[[mqttstat()]] - Get the MQTT connection status
[[getusbstat()]] - Get USB host status information