public Task SendOutputReport(OutputReport outputReport) { var visitor = new ReportDataExtractorVisitor(); outputReport.Data.Accept(visitor); return(stream.WriteAsync(visitor.Data, 0, visitor.Data.Length).WithTimeout(TimeSpan.FromMilliseconds(500))); }
public OutputReport CreateOutputReport(byte reportId = 0) { OutputReport outputReport = new OutputReport(capabilities.OutputReportByteLength); return(outputReport); }