system.opcua.confirm
This function is used in Python Scripting.
Descriptionβ
Confirms an OPC UA alarm condition. The eventId is the raw EventId bytes of the event being confirmed, which an OPC UA event stream event publishes as its eventId metadata value.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.opcua.confirm(connectionName, conditionId, eventId, [comment], [locale])
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | connectionName | The name of the OPC UA connection. |
| String | conditionId | The nodeId of the condition instance to confirm. Accepts either the namespace index form (ns=2;i=1234), or the namespace URI form (nsu=urn:example;i=1234). |
| Byte Array, ByteString, base64-encoded String | eventId | The eventId of the event being confirmed. Read from the event's eventId metadata value, which carries the raw bytes. An EventId field selected into an event's payload data is not a valid substitute. An empty EventId is forwarded to the server rather than rejected locally, so the returned StatusCode reports the server's verdict, typically Bad_EventIdUnknown. |
| String | comment | A comment to include with the confirmation. Omit or pass None to send a null LocalizedText instead of a blank comment. [Optional] |
| String | locale | The locale for the comment i.e., en-US. Defaults to an empty locale, and is ignored unless a comment is supplied. [Optional] |
Returnsβ
Tuple: A tuple describing the StatusCode the server returned for the call:
- 0: The code's numeric value, as an integer.
- 1: The code's name, such as
GoodorBad_EventIdUnknown. - 2: A description of the code.
Scopeβ
Gateway, Perspective Session