setSourceTimestamp problem

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

Moderator: uasdkcpp

Post Reply
rom2mars
Jr. Member
Jr. Member
Posts: 4
Joined: 09 Sep 2013, 16:21

setSourceTimestamp problem

Post by rom2mars »

hello,

when the readvalue is call,
we can see the server timestamp evolve in the console trace, but with the UaExpert this time is fixe at the time of the value change.

HELP PLEASE !!!

Thanks.

the code example in readValue() function:

Code: Select all

if ( status.isGood() )
				{
					//mise a jour des heure
                                        dateSource = UaDateTime::now();
                                        string sMsg = "heure source = "+string(dateSource.toString().toUtf8())+" heure serveur = "+string(dateServeur.toString().toUtf8());
					CSrv_log::info(__LINE__,__SHORT_FILE__,__FUNCTION__,sMsg);
					arrDataValues[i].setSourceTimestamp(dateSource);
					arrDataValues[i].setServerTimestamp(dateServeur);
                                        arrDataValues[i].setValue(vTemp, OpcUa_True, OpcUa_False);
                                }

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

Re: setSourceTimestamp problem

Post by Support Team »

Hello Romain,

A change in ServerTimestamp is NEVER reported to a client.
A change in SourceTimestamp can be reported to a client if the client is setting the right DataChangeFilter.

See http://forum.unified-automation.com/post1392.html#p1392

Best regards
Support Team

Post Reply