Exemple #1
0
        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)));
        }
Exemple #2
0
        public OutputReport CreateOutputReport(byte reportId = 0)
        {
            OutputReport outputReport = new OutputReport(capabilities.OutputReportByteLength);

            return(outputReport);
        }