User Tools

Site Tools


uphp:functions:mqtt_disconnect

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 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

uphp/functions/mqtt_disconnect.txt · Last modified: 2024/03/11 03:08 by admin