internal DeviceResponse Send(string Command) { this.Writer.WriteLine(Command); return(DeviceResponse.ReadResponse(Command, this.Reader)); }
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; }