subscribe_events
Buffer OPC UA alarms, condition changes, and plain events from a notifier node in the background, then read the collected events later to monitor activity without blocking.
Instructions
Start buffering OPC UA events (alarms, condition changes, plain events) from a notifier node. Returns at once; the events themselves are collected in the background and read with read_events. Calling it again for the same node replaces the subscription and discards what it had buffered. Use this to watch for things happening; use list_active_alarms for what is wrong right now.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | No | The notifier node to subscribe to. Defaults to the Server object 'ns=0;i=2253', which is where most servers publish every event they raise. | |
| buffer_size | No | How many events to hold before the oldest are dropped (default 100, clamped to 10000). read_events reports how many were dropped. | |
| severity_min | No | Buffer only events of at least this OPC UA severity (1-1000). Default 0, which keeps every event. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |