Beispiel #1
0
        internal static IModbusSession CreateFwdSession(TcpClient tcpClient)
        {
            var settings = new ModbusFwdSession.Settings();

            return(new ModbusFwdSession(new ModbusProtocolImpl(new TcpStream(tcpClient)), settings));
        }
Beispiel #2
0
 public static IModbusSession CreateFwdSession(TcpClient tcpClient, ModbusFwdSession.Settings settings)
 {
     return(new ModbusFwdSession(new ModbusProtocolImpl(new TcpStream(tcpClient)), settings));
 }