Przeglądaj źródła

Merge pull request #799 from jmrahm/array_read_handling_4_clients

Read array attribute in client api
Chris Iatrou 8 lat temu
rodzic
commit
479803f627
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/client/ua_client_highlevel.c

+ 1 - 1
src/client/ua_client_highlevel.c

@@ -328,7 +328,7 @@ __UA_Client_readAttribute(UA_Client *client, const UA_NodeId *nodeId, UA_Attribu
     UA_DataValue *res = response.results;
     if(res->hasStatus != UA_STATUSCODE_GOOD)
         retval = res->hasStatus;
-    else if(!res->hasValue || !UA_Variant_isScalar(&res->value))
+    else if(!res->hasValue)
         retval = UA_STATUSCODE_BADUNEXPECTEDERROR;
     if(retval != UA_STATUSCODE_GOOD) {
         UA_ReadResponse_deleteMembers(&response);