I am able to write on myNode using the UaExpert, but not using my test code, so I am assuming that this client side code is wrong:
Code: Select all
var nodesToWrite = new List<WriteValue>
{
new WriteValue()
{
NodeId = myNodeId,
AttributeId = Attributes.Value,
Value = new DataValue(new Variant(new DateTime(2000, 01, 01)), DateTime.UtcNow) {ServerTimestamp = DateTime.UtcNow}
},
};
List<StatusCode> results = this.session.Write(
nodesToWrite,
new RequestSettings() { OperationTimeout = 10000 });
foreach (var statusCode in results)
{
statusCode.ShouldBe(StatusCodes.Good);
}
(http://documentation.unified-automation ... 5539e4546b)
"The server does not support writing the combination of value, status and timestamps provided.", but I am not able to understand what the problem is.
I saw this other post but it did not solve my problem. https://forum.unified-automation.com/po ... rted#p1481
I tried not giving the ServerTimeStamp and/or not giving the SourceTimeStamp, but nothing works. Am I giving the value in a wrong manner? And which status is the doc talking about? Should the StatusCode not be something that the server is setting, not the client?
I am not specifiying UserData in the code above. Does that leave the existing UserData on that node as it was, or will it overwrite it with null?