MQTT_DISCONNECT
Purpose Disconnect from the currently connected MQTT Broker
Examples
MQTT_DISCONNECT
Comments:
  1. The PLC can only connect to one MQTT broker at a time. If for any reason it needs to switch broker, it must first disconnect from the currently connected broker using this command, then run the MQTT_CONNECT command again to connect to a different broker.
  2. MQTT_STATUS(1) will return a '2' indicating that the operation is successful. MQTT_STATUS(2) will return a '0' when the PLC has been disconnected from the broker.
See Also MQTT_CONNECT, MQTT_STATUS()

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual