BxCmdCancelTimingSwitch.py 619 B

1234567891011121314151617181920212223
  1. from .BxCmd import baseBxCmd
  2. from .BxCmdCode import CMD_CANCEL_TIMING_SWITCH
  3. class CmdCancelTimingSwitch(baseBxCmd):
  4. def __init__(self):
  5. super().__init__(CMD_CANCEL_TIMING_SWITCH.group, CMD_CANCEL_TIMING_SWITCH.code)
  6. def Build(self):
  7. result = bytearray()
  8. # 写入命令组
  9. result.append(self.Group())
  10. # 写入命令
  11. result.append(self.Cmd())
  12. # 写入响应标志
  13. result.append(self.ReqResp())
  14. # 写入保留值
  15. result.extend([0x00, 0x00])
  16. return None
  17. def NewCmdCancelTimingSwitch():
  18. return CmdCancelTimingSwitch()