Use the MQTT broker to transfer files
- Last UpdatedAug 19, 2024
- 2 minute read
The MQTT Broker supports transferring files of different formats such as PDF, .xls, .doc, .jpeg across the nodes. You can transfer files from one instance of Gateway Communication Driver (initiated by System Platform/InTouch) to a MQTT broker to be consumed by another instance of Gateway Communication Driver. The file to be transferred must be in the local file system, and not in a network/shared location.
To transfer a file, use the client to poke the complete file path to one of the MQTT topic names - wwData or wwDataDT.
-
On the publisher side, the MQTT publisher in Gateway Communication Driver will send the file content to the subscriber side.
-
On the subscriber side, if it receives an update on either of the two topics, it will create a file based on the name of the file used in the publisher side and provides the absolute path of the received path in the topic.
Note: The MQTT topic names wwData and wwDataDT are case sensitive.
Poke a file to the MQTT Topic Name:
-
In the SuiteLink client, select Item.
-
The Item Dialog appears:
-
In the Item field, enter wwData or wwDataDT
-
In the Value field, enter the path of the file to be transferred
-
-
Select Poke
The files are transferred, and saved to the path.
Poking the file to wwData
When the file is poked to wwData, the file is transferred to the public folder - C:\users\public\Wonderware\wwData
The filename and timestamp are retained. Any subsequent transfer using the same file name will overwrite the file in the previous transfer. The format of the file name is:
YYYYMMDD_<filename>
Poking the file to wwDataDT
When the file is poked to wwDataDT, the file is transferred to the public folder - C:\users\public\Wonderware\wwDataDT
The file name is prepended with the transfer time (UTC) at the destination folder. The timestamp on the file is retained. Any subsequent transfer using the same file name will overwrite the file in the previous transfer. The format of the file name is:
YYYYMMDD_HHMMSSsss_<filename>