Пример #1
0
        internal static IModbusSession CreateFwdSession(TcpClient tcpClient)
        {
            var settings = new ModbusFwdSession.Settings();

            return(new ModbusFwdSession(new ModbusProtocolImpl(new TcpStream(tcpClient)), settings));
        }
Пример #2
0
 public static IModbusSession CreateFwdSession(TcpClient tcpClient, ModbusFwdSession.Settings settings)
 {
     return(new ModbusFwdSession(new ModbusProtocolImpl(new TcpStream(tcpClient)), settings));
 }