Versions Compared

Key

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

...

Note
This can also be true with certain Sparkplug based payloads where metric names may have unusual characters in them. While MQTT and Sparkplug both support characters such as . & % =, Ignition does not support these as valid characters in a tag path or tag name. As a result, sometimes it may be necessary to tell MQTT Engine to replace certain characters or strings of characters with something else so the tag path and tag names can be properly created in Ignition.

Anchor
usage
usage
String Replacement Usage

The String Conversion feature can be used in any Custom Namespace or in the Sparkplug B Namespace. The String Replacement feature supports the following.

...

  • Remove all '@' symbols
  • Replace all '@' symbols with '_'
  • Replace all 'abc' character sequences with 'def'
  • Replace all characters between the literal strings 'start' and 'end' with a '_' character using a regex
     

Anchor
Replacement
Replacement
How do I determine what string replacement I need?

When an Ignition tag is created, there are some rules than that need to be followed:

  • The first character of the Tag name must be one of the following:
    • Letter - specifically, a letter as recognized by Unicode's Letter (L) category.
    • Number
    • Underscore
  • The second character, and every character after that can then be one of the following:
    • Letter
    • Number
    • Underscore
    • Space
    • Any of the following special characters: ', -, :, (, )

...