fix: rename UdpClient to UdpServer and update related documentation

BREAKING CHANGE, existing `udp` control method is now `udpServer` and `udp` control method is now a udp client
This commit is contained in:
Jonathan Arndt 2026-05-01 15:59:09 -07:00
parent 7239c827ed
commit c0b2ed1528
3 changed files with 17 additions and 17 deletions

View file

@ -92,19 +92,19 @@ namespace PepperDash.Essentials.Core
}
case eControlMethod.Udp:
{
var udp = new GenericUdpServer(deviceConfig.Key + "-udp", c.Address, c.Port, c.BufferSize);
comm = udp;
break;
}
case eControlMethod.UdpClient:
{
var udpClient = new GenericUdpClient(deviceConfig.Key + "-udpClient", c.Address, c.Port, c.BufferSize)
var udp = new GenericUdpClient(deviceConfig.Key + "-udp", c.Address, c.Port, c.BufferSize)
{
AutoReconnect = c.AutoReconnect
};
if (udpClient.AutoReconnect)
udpClient.AutoReconnectIntervalMs = c.AutoReconnectIntervalMs;
comm = udpClient;
if (udp.AutoReconnect)
udp.AutoReconnectIntervalMs = c.AutoReconnectIntervalMs;
comm = udp;
break;
}
case eControlMethod.UdpServer:
{
var udpServer = new GenericUdpServer(deviceConfig.Key + "-udpServer", c.Address, c.Port, c.BufferSize);
comm = udpServer;
break;
}
case eControlMethod.Telnet: