system.util.sendMessage(project, messageHandler, payload, scope, clientSessionId, user, hasRole, hostName, remoteServers)
String project - The name of the project containing the message handler.
String messageHandler - The name of the message handler that will fire upon receiving a message.
PyDictionary payload - Optional. A PyDictionary which will get passed to the message handler. Use "payload" in the message handler to access dictionary variables.
String scope- Optional. Limits the scope of the message delivery to "C" (clients), "G" (Gateway), "CG" for clients and the Gateway, or "S" Session (as of version 8.0.7). Any combination of C, G, and S are available.
Prior to version 8.0.7: Defaults to "C" if the user name, role or host name parameters are set, and to "CG" if none of these parameters are set.
As of version 8.0.8: Defaults to "CS" if the user name, role, or host name parameters are set, and to "CGS" if none of these parameters are set.
String clientSessionId - Optional. Limits the message delivery to a client with the specified session ID.
String user - Optional. Limits the message delivery to clients where the specified user has logged in.
String hasRole - Optional. Limits the message delivery to any client where the logged in user has the specified user role.
String hostName - Optional. Limits the message delivery to the client that has the specified network host name.
List remoteServers - Optional. A list of Strings representing Gateway Server names. The message will be delivered to each server in the list. Upon delivery, the message is distributed to the local Gateway and clients as per the other parameters.
List - A List of Strings containing information about each system that was selected for delivery, where each List item is comma-delimited.
Gateway, Vision Client, Perspective Session
The following feature is new in Ignition version 8.0.7
to check out the other new features
As of 8.0.7 system.util.sendMessage can send messages to both Perspective browser and mobile sessions.