StalderT 6 lat temu
rodzic
commit
d1cf2d2a6d
2 zmienionych plików z 6 dodań i 0 usunięć
  1. 2 0
      include/ua_client_config.h
  2. 4 0
      plugins/ua_config_default.c

+ 2 - 0
include/ua_client_config.h

@@ -85,9 +85,11 @@ typedef struct UA_ClientConfig {
 
     void *clientContext;
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     /* number of PublishResponse standing in the sever */
     /* 0 = background task disabled                    */
     UA_UInt16 outStandingPublishRequests;
+#endif
 } UA_ClientConfig;
 
 #ifdef __cplusplus

+ 4 - 0
plugins/ua_config_default.c

@@ -643,9 +643,13 @@ const UA_ClientConfig UA_ClientConfig_default = {
     NULL, /*.customDataTypes */
 
     NULL, /*.stateCallback */
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     NULL, /*.subscriptionInactivityCallback */
+#endif
 
     NULL,  /*.clientContext */
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     10 /* .outStandingPublishRequests */
+#endif
 };