Event based data updates C++ server sdk

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
SureshJ
Jr. Member
Jr. Member
Posts: 1
Joined: 29 Jan 2020, 12:32

Event based data updates C++ server sdk

Post by SureshJ »

Dear Support Team,

The documentation at lesson 3 provides an example to poll / sample data from underlying device/service. Can you provide an example / code snippet for integrating with an underlying services which can provide event based data on change in values in underlying system.

Thanks
Suresh Jangra

User avatar
Support Team
Hero Member
Hero Member
Posts: 2649
Joined: 18 Mar 2011, 15:09

Re: Event based data updates C++ server sdk

Post by Support Team »

Dear Suresh,

The default is event based.

If you do not change the value handling, you just need to provide the initial value when you create the node and call UaVariable::setValue() on the variable node that has a value change and everything else is handled by the SDK.

This is done for example in NodeManagerDemo::run() for the simulated values in the demo tree.
Best regards
Unified Automation Support Team

Post Reply