diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index 7141b3b..8fd352b 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -27,6 +27,7 @@ using Service.Cloud.Msg.Cloud.Resp.OutCharger; using Service.Cloud.Msg.Host.Req; using Service.Cloud.Msg.Host.Req.OutCharger; using Service.Cloud.Msg.Host.Resp; +using Service.Execute.Api; namespace Service.Cloud.Client; @@ -215,6 +216,22 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR if (result.ResultCode == MqttClientConnectResultCode.Success) { Connected = true; + //TODO::鉴权 是否放在这里 + CloudApi.SendSignIn(); + #region 0823 测试实时故障使用 + /*FaultReport faultReport = new() + { + sn = "HNGX0002", + en= "EquipCode", + fc= "ErrorCode", + ft="ErrorMsg", + fl= 1, + fg= 1, + bt= DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), + cm=2, + }; + CloudApi.SendRealTimeFaultInfo(faultReport);*/ + #endregion } else { @@ -517,6 +534,8 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR this.Publish(signIn); return Sign.GetResp(timeSpan); } + + public EqmStateStartLogInfoRes? SendStartLogMessage(EqmStateStartLogInfo eqmStateStartLogInfo, TimeSpan timeSpan) { diff --git a/Service/Cloud/Client/CloudClientMgr.cs b/Service/Cloud/Client/CloudClientMgr.cs index 82aa9da..aa44dcd 100644 --- a/Service/Cloud/Client/CloudClientMgr.cs +++ b/Service/Cloud/Client/CloudClientMgr.cs @@ -80,8 +80,7 @@ public class CloudClientMgr RedisHelper? redisHelper = AppInfo.Container.Resolve(); BinInfoRepository binInfoRepository = AppInfo.Container.Resolve(); - - CloudApi.SendSignIn(); + #region 遥测合并上报 req.datainfo = new List();