|
@@ -20,9 +20,9 @@ UA_UINT32RANGE(UA_UInt32 min, UA_UInt32 max) {
|
|
|
return range;
|
|
|
}
|
|
|
|
|
|
-static UA_INLINE UA_DoubleRange
|
|
|
-UA_DOUBLERANGE(UA_Double min, UA_Double max) {
|
|
|
- UA_DoubleRange range = {min, max};
|
|
|
+static UA_INLINE UA_DurationRange
|
|
|
+UA_DURATIONRANGE(UA_Double min, UA_Double max) {
|
|
|
+ UA_DurationRange range = {min, max};
|
|
|
return range;
|
|
|
}
|
|
|
|
|
@@ -169,14 +169,14 @@ UA_ServerConfig_new_minimal(UA_UInt16 portNumber,
|
|
|
conf->maxSessionTimeout = 60.0 * 60.0 * 1000.0; /* 1h */
|
|
|
|
|
|
/* Limits for Subscriptions */
|
|
|
- conf->publishingIntervalLimits = UA_DOUBLERANGE(100.0, 3600.0 * 1000.0);
|
|
|
+ conf->publishingIntervalLimits = UA_DURATIONRANGE(100.0, 3600.0 * 1000.0);
|
|
|
conf->lifeTimeCountLimits = UA_UINT32RANGE(3, 15000);
|
|
|
conf->keepAliveCountLimits = UA_UINT32RANGE(1, 100);
|
|
|
conf->maxNotificationsPerPublish = 1000;
|
|
|
conf->maxRetransmissionQueueSize = 0; /* unlimited */
|
|
|
|
|
|
/* Limits for MonitoredItems */
|
|
|
- conf->samplingIntervalLimits = UA_DOUBLERANGE(50.0, 24.0 * 3600.0 * 1000.0);
|
|
|
+ conf->samplingIntervalLimits = UA_DURATIONRANGE(50.0, 24.0 * 3600.0 * 1000.0);
|
|
|
conf->queueSizeLimits = UA_UINT32RANGE(1, 100);
|
|
|
|
|
|
#ifdef UA_ENABLE_DISCOVERY
|