mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【fix】修复设置属性,指令下发,单双向
This commit is contained in:
@@ -29,7 +29,7 @@ func (n *rpcRequestNode) Handle(msg *message.Message) error {
|
||||
|
||||
var rpc = &mqttclient.RpcRequest{Client: mqttclient.MqttClient, Mode: "double", Timeout: n.Timeout}
|
||||
rpc.GetRequestId()
|
||||
respPayload, err := rpc.RequestCmd(n.Payload)
|
||||
err := rpc.RespondTpc(n.Payload)
|
||||
if err != nil {
|
||||
if failureLableNode != nil {
|
||||
return failureLableNode.Handle(msg)
|
||||
@@ -37,9 +37,6 @@ func (n *rpcRequestNode) Handle(msg *message.Message) error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
msgM := msg.Msg
|
||||
msgM["payload"] = respPayload
|
||||
msg.Msg = msgM
|
||||
if successLableNode != nil {
|
||||
return successLableNode.Handle(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user