diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index 2ee592b..b3c6022 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -90,9 +90,9 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR public MsgPair VehicleData { get; set; } = new(); public MsgPair ChargeRecordUpLoad { get; set; } = new(); public MsgPair ChargeDevDataInfo { get; set; } = new(); - + public MsgPair PileEndCharge { get; set; } = new(); - + public MsgPair PileChargeRealtime { get; set; } = new(); public MsgPair PileRealtime { get; set; } = new(); @@ -267,7 +267,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR DateFormatString = "yyyy-MM-dd HH:mm:ss", NullValueHandling = NullValueHandling.Ignore }; - Log.Info(JsonConvert.SerializeObject(model, settings)); + Log.Info($"send {JsonConvert.SerializeObject(model, settings)}"); var appMsg = new MqttApplicationMessage { Topic = PubTopic, @@ -513,21 +513,21 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR this.Publish(req); return ChargeDevDataInfo.GetResp(timeSpan); } - + public PileEndChargeResp? SendPileEndCharge(PileEndCharge req, TimeSpan? timeSpan = null) { this.PileEndCharge.Req = req; this.Publish(req); return PileEndCharge.GetResp(timeSpan); } - + public PileChargeRealtimeResp? SendPileChargeRealtime(PileChargeRealtime req, TimeSpan? timeSpan = null) { this.PileChargeRealtime.Req = req; this.Publish(req); return PileChargeRealtime.GetResp(timeSpan); } - + public PileRealtimeResp? SendPileRealtime(PileRealtime req, TimeSpan? timeSpan = null) { this.PileRealtime.Req = req;