Explorar el Código

fix(server): Fix disabling MonitoredItems

Julius Pfrommer hace 5 años
padre
commit
95e97fc716
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/server/ua_server_internal.h

+ 2 - 0
src/server/ua_server_internal.h

@@ -314,8 +314,10 @@ readWithReadValue(UA_Server *server, const UA_NodeId *nodeId,
 UA_BrowsePathResult
 translateBrowsePathToNodeIds(UA_Server *server, const UA_BrowsePath *browsePath);
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
 void
 monitoredItem_sampleCallback(UA_Server *server, UA_MonitoredItem *monitoredItem);
+#endif
 
 UA_BrowsePathResult
 browseSimplifiedBrowsePath(UA_Server *server, const UA_NodeId origin,