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
Data from an Edge edge device publishing MQTT payloads with binary data can be parsed at Ignition using an MQTT Engine Custom Namespace and an Ignition script.
...
Follow the steps in the MQTT Publishing via Transmission to publish an MQTT message with a topic of a/b and a payload of [30, 32, 32, 34, 41]
...
When using the default MQTT module configuration for MQTT Distributor and MQTT Engine, you your arguments will look like:
...
When the MQTT message is received and parsed by MQTT Engine, a tag folder tree will be created create containing the binary data as shown below:
To parse the binary tag data we will now create a Value Changed script on the tag.
Follow the steps in the Ignition Tag Event Scripts documentation to create a Value Change script on the tag and copy the code below which will parse through the binary data and make the bytes available for use as needed.
...
Code Block |
---|
system.cirruslink.transmission.publish("Chariot SCADA", "a/b", [1, 2, 3, 4, 5, 6], 0, False) |
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
...