浏览代码

fix building the client example without subscriptions

Julius Pfrommer 7 年之前
父节点
当前提交
b1ebf84f24
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/client.c

+ 2 - 0
examples/client.c

@@ -4,10 +4,12 @@
 #include <stdio.h>
 #include "open62541.h"
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
 static void
 handler_TheAnswerChanged(UA_UInt32 monId, UA_DataValue *value, void *context) {
     printf("The Answer has changed!\n");
 }
+#endif
 
 static UA_StatusCode
 nodeIter(UA_NodeId childId, UA_Boolean isInverse, UA_NodeId referenceTypeId, void *handle) {