Skip to content

Commit 563de96

Browse files
committed
feat: add TcpIpServer case to CreateCommForDevice method
1 parent dd5d145 commit 563de96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PepperDash.Essentials.Core/Comm and IR/CommFactory.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ public static IBasicCommunication CreateCommForDevice(DeviceConfig deviceConfig)
104104
comm = secureTcp;
105105
break;
106106
}
107+
case eControlMethod.TcpIpServer:
108+
{
109+
var tcpServer = new GenericTcpIpServer(deviceConfig.Key + "-tcpServer", c.Address, c.Port, c.BufferSize);
110+
comm = tcpServer;
111+
break;
112+
}
107113
default:
108114
break;
109115
}

0 commit comments

Comments
 (0)