Browse Source

2022-04-07/Jerry Wang
Action:
1. [Bug fix]Clear the counterPingSend when the connection established.

File:
1. EVSE/Modularization/ocppfile/Module_OcppBackend.c
--> Action 1
2. EVSE/Modularization/ocppph/Module_OcppBackend.c
--> Action 1

Jerry Wang 3 years ago
parent
commit
b0a2b9f61d

+ 1 - 0
EVSE/Modularization/ocppfiles/Module_OcppBackend.c

@@ -278,6 +278,7 @@ static int OCPP16Callback(struct lws *wsi, enum lws_callback_reasons reason, voi
 			ConnectionEstablished=1;
 			SetOcppConnStatus(TRUE);
 			refreshStartTimer(&startTime.pingOn);
+			counterPingSend = 0;
 			queueOpInfo.TransactionMessageResend = 0;
 			break;
 		case LWS_CALLBACK_CLIENT_CONNECTION_ERROR://1

+ 1 - 1
EVSE/Modularization/ocppph/Module_OcppBackend.c

@@ -273,8 +273,8 @@ static int OCPP16Callback(struct lws *wsi, enum lws_callback_reasons reason, voi
 			//connected
 			ConnectionEstablished=1;
 			SetOcppConnStatus(TRUE);
-
 			refreshStartTimer(&startTime.pingOn);
+			counterPingSend = 0;
 			queueOpInfo.TransactionMessageResend = 0;
 			break;
 		case LWS_CALLBACK_CLIENT_CONNECTION_ERROR://1