mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: add support for UdpClient in communication methods and implement GenericUdpClient class
This commit is contained in:
parent
beb77ec468
commit
c9f5af184b
4 changed files with 407 additions and 3 deletions
|
|
@ -96,6 +96,17 @@ namespace PepperDash.Essentials.Core
|
|||
comm = udp;
|
||||
break;
|
||||
}
|
||||
case eControlMethod.UdpClient:
|
||||
{
|
||||
var udpClient = new GenericUdpClient(deviceConfig.Key + "-udpClient", c.Address, c.Port, c.BufferSize)
|
||||
{
|
||||
AutoReconnect = c.AutoReconnect
|
||||
};
|
||||
if (udpClient.AutoReconnect)
|
||||
udpClient.AutoReconnectIntervalMs = c.AutoReconnectIntervalMs;
|
||||
comm = udpClient;
|
||||
break;
|
||||
}
|
||||
case eControlMethod.Telnet:
|
||||
break;
|
||||
case eControlMethod.SecureTcpIp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue