Comments (4)
Events are a special kind of monitored item; the result of subscribing to the Event Notifier attribute of an ObjectNode in which the value of the attribute is non-zero. When you subscribe to events you provide a filter which can narrow down not only which types of events you receive but which fields of that event type your interested in. The Variant[]
your event consumer expects will correspond to those fields.
The server doesn't support events yet, so there's no example test case to explain it better, but this gist I put together a while back on how to subscribe to events in the client may clarify: https://gist.github.com/kevinherron/0143b38cc93e19266156
from milo.
Need better javadoc on setEventConsumer
methods.
from milo.
I have a question regarding the QualifiedName
in your example. Is the QualifiedName
relative to the readValueId
or is it an absolute ?
Another question pops up: Do I understand it correctly that every node can be defined as an Event supplier/notifier? As far as I can see, there is an attribute identifier EventNotifier
, which indicates that is the case !?
from milo.
The QualifiedName is determined by which event "fields" you're interested in. In the address space, all of the fields of an event will be property nodes of the event object.
All ObjectNodes have an EventNotifier attribute, but they can only be subscribed to for events if the attribute is set to 1. It's typical for a server to use the Server object as its event notifier, but there's nothing requiring it.
OPC-UA specification part 3, 4, and 5 would all help clarify this bit. Unfortunately OPC-UA is so complex that it's probably not possible to understand it without the aid of the specifications.
from milo.
Related Issues (20)
- Security upgrade to netty-4.1.105.Final
- CertificateValidationUtil issuer certificate KeyUsage checks
- How to read CustomStructType? HOT 1
- Remove dependency on lombok
- milo version 0.6.11 monitors the approximate limit of the number of PLC points HOT 1
- URI Reading Error HOT 8
- Port forwarding HOT 1
- Milo 0.6.12 Gradle ambiguity error for guava 33 HOT 4
- EndpointDescription is only chosen based on path, not hostname, preventing different certificates per-endpoint HOT 2
- status=Bad_Timeout HOT 1
- Convert `AddressSpace` to blocking API
- Roles and Permissions HOT 1
- Cannot connect to Secured OPC Server HOT 2
- How i can get and mange pEventAttributes from OPC AE and wrapper with Milo? HOT 1
- Setting a node's value to null resp. clearing the node HOT 2
- Upgrade Netty to 4.1.108.Final
- Misleading declaration of `CompositeValidator` compared to its use HOT 3
- Getting `Bad_SecurityChecksFailed` followed by `Bad_ConnectionClosed` when using recursion with `OpcUaClient.getAddressSpace().browseNodesAsync(UaNode).thenCompose()` HOT 22
- Use ReferenceTypeTree in OpcUaServer
- Vulnerabilities CVE-2024-30172/CVE-2024-30171/CVE-2024-29857 for bouncycastle HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from milo.