Skip to content

Commit 10abdf1

Browse files
committed
fix bug: missing send command params count.
1 parent 918ab2b commit 10abdf1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/mqttaccess/access.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ func (a *Access) SendCommand(args rpcs.ArgsSendCommand, reply *rpcs.ReplySendCom
9090
cmd.Head.No = args.No
9191
cmd.Head.Priority = args.Priority
9292
cmd.Head.SubDeviceid = args.SubDevice
93+
cmd.Head.ParamsCount = uint16(len(args.Params))
9394
cmd.Params = args.Params
9495
msg, err := cmd.Marshal()
9596
if err != nil {

0 commit comments

Comments
 (0)