|
@@ -139,7 +139,7 @@ namespace EVCB_OCPP.WSServer
|
|
|
|
|
|
Task serverHealthTask = new Task(HealthCheckTrigger, _ct);
|
|
|
serverHealthTask.Start();
|
|
|
-
|
|
|
+
|
|
|
while (true)
|
|
|
{
|
|
|
var input = Console.ReadLine();
|
|
@@ -720,10 +720,37 @@ namespace EVCB_OCPP.WSServer
|
|
|
if (((BootNotificationConfirmation)replyResult.Message).status == Packet.Messages.SubTypes.RegistrationStatus.Accepted)
|
|
|
{
|
|
|
|
|
|
-
|
|
|
-
|
|
|
CheckVersion(session.ChargeBoxId);
|
|
|
CheckEVSEConfigure(session.ChargeBoxId);
|
|
|
+ if (session.CustomerId == new Guid("298918C0-6BB5-421A-88CC-4922F918E85E")|| session.CustomerId == new Guid("9E6BFDCC-09FB-4DAB-A428-43FE507600A3"))
|
|
|
+ {
|
|
|
+ using (var db = new MainDBContext())
|
|
|
+ {
|
|
|
+ db.ServerMessage.Add(new ServerMessage()
|
|
|
+ {
|
|
|
+ ChargeBoxId = session.ChargeBoxId,
|
|
|
+ CreatedBy = "Server",
|
|
|
+ CreatedOn = DateTime.UtcNow,
|
|
|
+ OutAction = Actions.ChangeConfiguration.ToString(),
|
|
|
+ OutRequest = JsonConvert.SerializeObject(
|
|
|
+ new ChangeConfigurationRequest()
|
|
|
+ {
|
|
|
+ key = "TimeOffset",
|
|
|
+ value = "+08:00"
|
|
|
+
|
|
|
+ },
|
|
|
+ new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, Formatting = Formatting.None }),
|
|
|
+ SerialNo = Guid.NewGuid().ToString(),
|
|
|
+ InMessage = string.Empty
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ db.SaveChanges();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (session.CustomerId == new Guid("009E603C-79CD-4620-A2B8-D9349C0E8AD8"))
|
|
|
{
|
|
@@ -1967,7 +1994,7 @@ namespace EVCB_OCPP.WSServer
|
|
|
foreach (var item in removeList)
|
|
|
{
|
|
|
needConfirmPacketList.Remove(item);
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|