Browse Source

fix building the client example without subscriptions

Julius Pfrommer 6 years ago
parent
commit
b1ebf84f24
1 changed files with 2 additions and 0 deletions
  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) {