+ device_path = self.gets_device_path(report_id)
+ with open(device_path, 'rb+') as fd:
+ fd.write(report)
+
+ @property
+ def last_received_report(self, ):
+ device_path = self.gets_device_path(self.report_ids[0])
+ with open(device_path, 'rb+') as fd:
+ os.set_blocking(fd.fileno(), False)
+ report = fd.read(self.out_report_lengths[0])
+ if report is not None:
+ self._last_received_report = report
+ return self._last_received_report
+
+ def gets_device_path(self, report_id):