瀏覽代碼

the synchronous client uses a small keepalivecount and a large lifetimecount

Julius Pfrommer 8 年之前
父節點
當前提交
c3abb5014f
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 2 1
      plugins/ua_config_standard.c
  2. 3 3
      src/client/ua_client_highlevel_subscriptions.c

+ 2 - 1
plugins/ua_config_standard.c

@@ -62,4 +62,5 @@ const UA_EXPORT UA_ClientConfig UA_ClientConfig_standard = {
         .recvBufferSize  = 65536,
         .maxMessageSize = 65536,
         .maxChunkCount = 1 },
-    .connectionFunc = UA_ClientConnectionTCP };
+    .connectionFunc = UA_ClientConnectionTCP
+};

+ 3 - 3
src/client/ua_client_highlevel_subscriptions.c

@@ -4,9 +4,9 @@
 #include "ua_types_generated_encoding_binary.h"
 
 const UA_SubscriptionSettings UA_SubscriptionSettings_standard = {
-    .requestedPublishingInterval = 1000.0,
-    .requestedLifetimeCount = 100,
-    .requestedMaxKeepAliveCount = 10,
+    .requestedPublishingInterval = 500.0,
+    .requestedLifetimeCount = 10000,
+    .requestedMaxKeepAliveCount = 1,
     .maxNotificationsPerPublish = 10,
     .publishingEnabled = true,
     .priority = 0