Page 1 of 1

Event based data updates C++ server sdk

Posted: 22 Jun 2021, 19:26
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

Re: Event based data updates C++ server sdk

Posted: 27 Jul 2021, 13:13
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.