mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
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:
parent
7239c827ed
commit
c0b2ed1528
3 changed files with 17 additions and 17 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue