Преглед изворни кода

2022-04-12/Jerry Wang
Action:
1. [Improve] SetChargingProfile fuction
a. Rename ChargePointMaxProfile as ChargingStationMaxProfile.
b. Add checking stack quantity logic.
c. Modify checking Profile quantity logic.
d. Add checking replaceable profile logic.
e. Modify parsing chargingProfile format logic to avoid crash.
2. Change variableVersion to 6.
a. Set ProfileStackLevel default value to '3'.
3. [Bug fix] Clear the counterPingSend when the connection established.

File:
1. EVSE/Modularization/ocpp20/MessageHandler.c
--> Action 1,2
2. EVSE/Modularization/ocpp20/Module_OcppBackend20.c
--> Action 3

Jerry Wang пре 3 година
родитељ
комит
95b99b2b59
2 измењених фајлова са 397 додато и 159 уклоњено
  1. 396 158
      EVSE/Modularization/ocpp20/MessageHandler.c
  2. 1 1
      EVSE/Modularization/ocpp20/Module_OcppBackend20.c

Разлика између датотеке није приказан због своје велике величине
+ 396 - 158
EVSE/Modularization/ocpp20/MessageHandler.c


+ 1 - 1
EVSE/Modularization/ocpp20/Module_OcppBackend20.c

@@ -204,8 +204,8 @@ static int OCPP20Callback(struct lws *wsi, enum lws_callback_reasons reason, voi
 			ConnectionEstablished=1;
 			SetOcppConnStatus(TRUE);
 			refreshStartTimer(&startTime.pingOn);
-			queueOpInfo.PreTransactionMessageResend = 0;
 			counterPingSend = 0;
+			queueOpInfo.PreTransactionMessageResend = 0;
 			break;
 		case LWS_CALLBACK_CLIENT_CONNECTION_ERROR://1
 			DEBUG_ERROR("LWS_CALLBACK_CLIENT_CONNECTION_ERROR %s\n", (char *)in );

Неке датотеке нису приказане због велике количине промена