Search code examples
javaopc-uamilo

Milo OPC UA Server push Values in Server Logic


I'm a newbie to OPC UA.

My target is to create a OPC UA Server and as soon somebody changes any Value I want to receive a function call, so I can react on the Input.

To archive this, I created a server with MILO-Eclipse. In my Namespace I have some functions called onDataItemsModified() etc. But if I change a Value in my Server with UAExpert, the Server doesn't call the onDataItemsModified() Function. Is there another way to receive a notification as soon somebody changed a value on my Server? I saw the opportunity to add a client and register an observer, but I thought I can see the changes directly as Server and dosnt need to implement a client.


Solution

  • When a client writes to an attribute of a Node in your address space it comes in via the Write service, not any of the Monitored Item services.

    You can override the write call in your address space, or simply add an AttributeObserver or an AttributeDelegate to the Nodes you create.