def download_page(self, x): log.info('comm:XXX:READ HISTORY DATA page number: %r' % (x)) comm = commands.ReadHistoryData(serial=self.device.serial, params=[x]) self.device.execute(comm) page = comm.getData() comm.save(prefix=self.log_format) log.info("XXX: READ HISTORY DATA page number %r!!:\n%s" % (x, page)) time.sleep(.100)
def download(self): """ Download a single page, copy paste from elsewhere. """ log.info("read HISTORY DATA") comm = commands.ReadHistoryData(serial=self.device.serial, page=0) self.device.execute(comm) log.info('comm:READ history data page!!!:\n%s' % (comm.getData())) comm.save(prefix=self.log_format)
def read_history_0(self): log.info("read HISTORY DATA") comm = commands.ReadHistoryData(serial=self.serial, page=0) self.execute(comm) log.info('comm:READ history data page!!!:\n%s' % (comm.getData()))