BxCmdReadParams.go 282 B

123456789101112131415
  1. package bx
  2. type CmdReadParams struct {
  3. baseBxCmd
  4. }
  5. func NewCmdReadParams() CmdReadParams {
  6. return CmdReadParams{
  7. baseBxCmd: newBaseCmd(CMD_READ_PARAMS.group, CMD_READ_PARAMS.code),
  8. }
  9. }
  10. func (cmd CmdReadParams) Build() []byte {
  11. return []byte{0xa2, 0x0a, 0x01, 0x00, 0x00}
  12. }