Browse Source

fix(server): Fix disabling MonitoredItems

Julius Pfrommer 5 years ago
parent
commit
95e97fc716
1 changed files with 2 additions and 0 deletions
  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,