public override void Init() { base.Init(); StartJamodSlave(program); MasterTcp = new TcpClient(TcpHost.ToString(), Port); Master = ModbusIpMaster.CreateIp(MasterTcp); }
public NModbusTcpMasterJamodTcpSlaveFixture() { string program = $"TcpSlave {Port}"; StartJamodSlave(program); MasterTcp = new TcpClient(TcpHost.ToString(), Port); Master = ModbusIpMaster.CreateIp(MasterTcp); }
public NModbusTcpMasterNModbusTcpSlaveFixture() { SlaveTcp = new TcpListener(TcpHost, Port); SlaveTcp.Start(); Slave = ModbusTcpSlave.CreateTcp(SlaveAddress, SlaveTcp); StartSlave(); MasterTcp = new TcpClient(TcpHost.ToString(), Port); Master = ModbusIpMaster.CreateIp(MasterTcp); }
public override void Init() { base.Init(); SlaveTcp = new TcpListener(TcpHost, Port); SlaveTcp.Start(); Slave = ModbusTcpSlave.CreateTcp(SlaveAddress, SlaveTcp); StartSlave(); MasterTcp = new TcpClient(TcpHost.ToString(), Port); Master = ModbusIpMaster.CreateIp(MasterTcp); }