Skip to content

Commit

Permalink
fix bug: missing send command params count.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizeng committed May 31, 2016
1 parent 918ab2b commit 10abdf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/mqttaccess/access.go
Expand Up @@ -90,6 +90,7 @@ func (a *Access) SendCommand(args rpcs.ArgsSendCommand, reply *rpcs.ReplySendCom
cmd.Head.No = args.No
cmd.Head.Priority = args.Priority
cmd.Head.SubDeviceid = args.SubDevice
cmd.Head.ParamsCount = uint16(len(args.Params))
cmd.Params = args.Params
msg, err := cmd.Marshal()
if err != nil {
Expand Down

0 comments on commit 10abdf1

Please sign in to comment.