Topic RSS19:18, EEST
February 21, 2014
OfflineI try set set the value of the Server/ServerStatus/BuildInfo variable, following the example in the SampleServer SourceCode (SDK 2.0.3). While the underlying variableNodes are set accordingly, the BuildInfo struct itself is not set. How could this be accomplished?
Thanks,
Hans-Uwe
====
Post edit:
The solution is actually rather simple:
final BuildInfoTypeNode buildInfo = server.getNodeManagerRoot().getServerData().getServerStatusNode().getBuildInfoNode();
buildInfo.setValue(new DataValue(new Variant(new BuildInfo(“uri”, “Manufacturer”, “Product”, “Version”, “BuildNumber”, new DateTime()))));
[values have to be replaced with actual information]
7:36, EEST
December 21, 2011
OfflineWell, yes that is the way to do it manually. The SDK should also be able to automatically track changes in the struct and variables and synchronise them, but at the moment I am not certain whether this feature was finalised before 2.1.0. It seems to work for me.
So, please, update to the latest and try again…
1 Guest(s)

Log In
Register