Giter Site home page Giter Site logo

Comments (4)

kevinherron avatar kevinherron commented on June 11, 2024

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.

kevinherron avatar kevinherron commented on June 11, 2024

Need better javadoc on setEventConsumer methods.

from milo.

tosuns avatar tosuns commented on June 11, 2024

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.

kevinherron avatar kevinherron commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.