Changed default SamplingInterval to reduce load on embedded servers

Some OPC UA Servers (e.g. PLCs) have to poll data in order to report changes of values.
If a sampling rate of 0 is provided, the server is forced to poll as fast as possible.
This commit is contained in:
Freddy 2017-05-03 15:48:55 +02:00 коммит произвёл GitHub
Родитель cfbc8fc7ae
Коммит 812d67902a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -369,7 +369,7 @@ namespace Opc.Ua.Publisher
monitoredItem.AttributeId = Attributes.Value;
monitoredItem.DisplayName = nodeDisplayName;
monitoredItem.MonitoringMode = MonitoringMode.Reporting;
monitoredItem.SamplingInterval = 0;
monitoredItem.SamplingInterval = 1000;
monitoredItem.QueueSize = 0;
monitoredItem.DiscardOldest = true;