Sfoglia il codice sorgente

fix(server): Fix disabling MonitoredItems

Julius Pfrommer 5 anni fa
parent
commit
95e97fc716
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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,