示例#1
0
 internal DeviceResponse Send(string Command)
 {
     this.Writer.WriteLine(Command);
     return(DeviceResponse.ReadResponse(Command, this.Reader));
 }
示例#2
0
        internal async Task <DeviceResponse> SendAsync(string Command)
        {
            await this.Writer.WriteLineAsync(Command);

            return(await DeviceResponse.ReadResponseAsync(Command, this.Reader));
        }
 internal EspCommunicationException(DeviceResponse Response)
     : base($"An unknown error occured during the execution of the following command: {Response.ExecutedCommand}")
 {
     this.Response = Response;
 }