| 12345678910111213141516171819 |
- from .BxCmd import baseBxCmd
- from .BxCmdCode import CMD_READ_PARAMS
- class CmdReadParams(baseBxCmd):
- """读取参数命令"""
- def __init__(self):
- super().__init__(CMD_READ_PARAMS.group, CMD_READ_PARAMS.code)
- def Build(self):
- """构建命令数据"""
- # 直接返回固定的命令数据
- return bytes([0xa2, 0x0a, 0x01, 0x00, 0x00])
- # 创建CmdReadParams实例的函数
- def NewCmdReadParams():
- """创建读取参数命令实例"""
- return CmdReadParams()
|