-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
ShdrIntervalAdapter.cs
24 lines (18 loc) · 1.01 KB
/
ShdrIntervalAdapter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved.
// TrakHound Inc. licenses this file to you under the MIT license.
using MTConnect.Configurations;
namespace MTConnect.Adapters
{
/// <summary>
/// An Adapter class for communicating with an MTConnect Agent using the SHDR protocol.
/// Supports multiple concurrent Agent connections.
/// Sends the most recent changes at the specified interval.
/// </summary>
public class ShdrIntervalAdapter : ShdrAdapter
{
private const int _defaultInterval = 100;
public ShdrIntervalAdapter(int port = 7878, int heartbeat = 10000, int interval = _defaultInterval) : base(port, heartbeat, interval) { }
public ShdrIntervalAdapter(string deviceKey, int port = 7878, int heartbeat = 10000, int interval = _defaultInterval) : base(deviceKey, port, heartbeat, interval) { }
public ShdrIntervalAdapter(ShdrAdapterClientConfiguration configuration, int interval = _defaultInterval) : base(configuration, interval) { }
}
}