Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Now select 'Tag Change' click the 'new Tag+' icon at the bottom of the window shown below and create a new Tag Change Script called 'Publish Script'.

Image RemovedImage Added

Set After setting the name of the script and then select a tag path.  In this case we're using an MQTT Engine tag from an emulated device.a tag in the default tag provider called 'MyTriggerTag' as shown below.

Image AddedImage Removed

Now select the 'Script' tab near the top.  In it, type the following line:

...

When complete, the script should look something like this.  Now click OK.

Image RemovedImage Added

Finally, save and publish the project.  At this point every time this tags value, quality, or timestamp changes it will result in a MQTT message being published on topic 'a/b/c' with a payload of 'hello world'.

...