feat: add support for UdpClient in communication methods and implement GenericUdpClient class

This commit is contained in:
Jonathan Arndt 2026-05-01 14:29:54 -07:00
parent beb77ec468
commit c9f5af184b
4 changed files with 407 additions and 3 deletions

View file

@ -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: