bazza2jw / open62541Cpp

C++ Wrappers for Open62541 Version 0.3
35 stars 21 forks source link

Wrong return value in writeAttribute #8

Closed TeunScheffel closed 3 years ago

TeunScheffel commented 4 years ago

Hi, I found a small 'slip of the pen':

In open62541server.h, in writeAttribute() the return value is wrong because of _lastError being compared to UA_STATUSCODE_GOOD. The line should be: _lastError = __UA_Server_write(_server, nodeId, attributeId, attr_type, attr); And then all is fine. Found this when using the writeEnable() on a node.

Best regards, Teun

bazza2jw commented 3 years ago

Thanks. Sorry for the delay.

Bazza