Explorar o código

fix Monitoring Basic - Err-005

Julius Pfrommer %!s(int64=8) %!d(string=hai) anos
pai
achega
6c645a12d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/ua_services_subscription.c

+ 1 - 1
src/server/ua_services_subscription.c

@@ -138,7 +138,7 @@ Service_CreateMonitoredItems_single(UA_Server *server, UA_Session *session, UA_S
     /* Check if the target exists */
     const UA_Node *target = UA_NodeStore_get(server->nodestore, &request->itemToMonitor.nodeId);
     if(!target) {
-        result->statusCode = UA_STATUSCODE_BADNODEIDINVALID;
+        result->statusCode = UA_STATUSCODE_BADNODEIDUNKNOWN;
         return;
     }
     // TODO: Check if the target node type has the requested attribute