BxCmdFileRead.py 484 B

12345678910111213141516171819
  1. from .BxCmd import baseBxCmd
  2. from .BxCmdCode import CMD_GET_FILE_INTO
  3. class CmdReadFileInfo(baseBxCmd):
  4. def __init__(self):
  5. super().__init__(CMD_GET_FILE_INTO.group, CMD_GET_FILE_INTO.code)
  6. def Build(self):
  7. result = bytearray()
  8. result.append(self.Group())
  9. result.append(self.Cmd())
  10. result.append(self.ReqResp())
  11. result.extend([0x00, 0x00])
  12. return None
  13. def NewCmdReadFileInfo(FileName):
  14. return CmdReadFileInfo()