Parcourir la source

the synchronous client uses a small keepalivecount and a large lifetimecount

Julius Pfrommer il y a 8 ans
Parent
commit
c3abb5014f

+ 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