mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix] 修复tcp异常断开,云端认证还是true
This commit is contained in:
@@ -28,7 +28,7 @@ func (rpc RpcRequest) RequestCmd(deviceId, rpcPayload string) error {
|
||||
topic := fmt.Sprintf(RpcReqTopic, rpc.RequestId)
|
||||
value, ok := Session.Load(deviceId)
|
||||
if !ok {
|
||||
return errors.New("为获取到设备的MQTT连接")
|
||||
return errors.New("未获取到设备的MQTT连接")
|
||||
}
|
||||
return Publish(topic, value.(string), rpcPayload)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user