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);
}