mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: add TcpIpServer case to CreateCommForDevice method
This commit is contained in:
parent
dd5d1457d2
commit
563de96e7c
1 changed files with 6 additions and 0 deletions
|
|
@ -104,6 +104,12 @@ namespace PepperDash.Essentials.Core
|
||||||
comm = secureTcp;
|
comm = secureTcp;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case eControlMethod.TcpIpServer:
|
||||||
|
{
|
||||||
|
var tcpServer = new GenericTcpIpServer(deviceConfig.Key + "-tcpServer", c.Address, c.Port, c.BufferSize);
|
||||||
|
comm = tcpServer;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue