Versions Compared

Key

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

Details about the Sparkplug EdgeNodes connected at Engine can be found in the Engine Info > Edge Nodes folder in the MQTT Engine tag provider.

 

where:

Name

Data Type

Description

Last Node to ConnectStringThe Sparkplug ID of the last node to connect
Last Node To DisconnectStringThe Sparkplug ID of the last node to disconnect
NodesOfflineIntegerThe number of Sparkplug Edge Nodes offline. This is determined by whether the last lifecycle message was an NBIRTH or NDEATH
NodesOnlineIntegerThe number of Sparkplug Edge Nodes online. This is determined by whether the last lifecycle message was an NBIRTH or NDEATH
NodeUnitCountIntegerThe total number of Sparkplug Edge Nodes as determined by the received NBIRTH messages
Offline NodesDatasetA dataset containing the Sparkplug ID and timestamp for all offline Sparkplug edge nodes
Online NodesDatasetA dataset containing the Sparkplug ID and timestamp for all online Sparkplug edge nodes 


Executing the code below in the Ignition Script Console will print out the values in the Offline Nodes and Online Nodes datasets for review:

...

Example result from the Engine Info > Edge Nodes above

Code Block
languagepy
>>>  Online
Online Sparkplug EdgeNodes: 21
[['Sparkplug EdgeNode Descriptor', u'MyGroupG1/MyEdgeNodeE1'], ['Last Connect Date', FriTue Sep 2226 1408:0459:4001 CDT 2023]]
Offline Sparkplug EdgeNodes: 1
[['Sparkplug EdgeNode Descriptor', u'G1MyGroup/E1MyEdgeNode'], ['Last Connect Date', FriTue Sep 2226 1409:0406:4049 CDT 2023]]
Offline Sparkplug EdgeNodes: 0
>>>


Excerpt Include
CLD80:FAQ: Ignition Modules
CLD80:FAQ: Ignition Modules
nopaneltrue

...