V2/Cet/IO/Cet.IO.Protocols.Modbus/ModbusClient.cs
/// <summary>
/// Entry-point for submitting any command
/// </summary>
/// <param name="port">The client port for the transport</param>
/// <param name="command">The command to be submitted</param>
/// <returns>The result of the query</returns>
Entry-point for submitting any command
Entry - point for submitting any command
public CommResponse ExecuteGeneric(
            ICommClient port,
            ModbusCommand command)
        {
            var data = new ClientCommData(this);
            data.UserData = command;
            this.Codec.ClientEncode(data);
            return port
                .Query(data);
        }
public CommResponse ExecuteGeneric ( ICommClient port , ModbusCommand command ) { var data = new ClientCommData ( this ) ; data . UserData = command ; this . Codec . ClientEncode ( data ) ; return port . Query ( data ) ; }
Entry-point for submitting any command
Entry - point for submitting any command
The result of the query
The result of the query
port
ICommClient
The client port for the transport
The client port for the transport
command
ModbusCommand
The command to be submitted
The command to be submitted