Contents
Cirrus Link Resources
Cirrus Link Website
Contact Us (Sales/Support)
Forum
Cirrus Link Modules Docs for Ignition 7.9.x
Inductive Resources
Ignition User Manual
Knowledge Base Articles
Inductive University
Forum
...
This tutorial shows how to configure the MQTT modules to publish and process filesfiles using both the manual and auto publish methods.
Table of Contents | ||
---|---|---|
|
...
After the configuration is saved, it should look similar to below:
At this pointWith a File record created following the steps in Configure MQTT Transmission to publish files with the 'Enable Auto-Publish' unchecked and the Tag Folder Path set to "files_manual", everything should be configured to send files from MQTT Transmission to MQTT Engine.
...
Note |
---|
The md5 sum file is only required when using the auto publish method. This is needed to ensure that the file to be transferred is complete and ready to be published. |
Note |
---|
Certain If you are testing with a different file, certain characters have special meanings when used in filenames such as "*" for wildcards, and "\" in filename paths. If a file you are trying to publish contains any of the characters listed below, it will prevent files from being written to the file system. " * : < > ? / \ | Leading and trailing spaces in filenames and filenames ending in '.' are also not supported. |
...
Note |
---|
The files will be left on the originating filesystem after a successful publish and will need to be removed manually |
Create With a File record created following the steps in Configure MQTT Transmission to publish files checking the with 'Enable Auto-Publish' checked and configuring the Tag Folder Path set to "files_auto".
At this point, everything should be configured to send files from MQTT Transmission to MQTT Engine.
Open Ignition Designer on the system running MQTT Transmission. You should see the control and information tags created in the specified tag provider and folder as shown below:
...
At this point, we just need to tell MQTT Transmission which folder contains the file(s) to sendpublish. Download and unzip this sample file to some location and note that location.
...
sample_file.txt
sample_file.txt.md5
Note |
---|
Certain If you a testing with a different file, certain characters have special meanings when used in filenames such as "*" for wildcards, and "\" in filename paths. If a file you are trying to publish contains any of the characters listed below, it will prevent files from being written to the file system. " * : < > ? / \ | Leading and trailing spaces in filenames and filenames ending in '.' are also not supported. |
...
Note | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
When transferring files using auto_publish, MQTT Transmission requires two files to be present before it will transfer the target file. The first is the file itself. The second is a file that has the same name as the target file followed by a '.md5' extension. The file containing the md5 sum file is needed to ensure that the file to be transferred is complete and ready to be publishedof the target file will not be transferred. The contents of that file must contain the Message Digest Algorithm 5 (or MD5 sum) of the file. The MD5 sum can be calculated using command line utilities on most operating systems or through scripting in Ignition. Here are some examples: Linux
OSX
Windows
Ignition Script
|
...