Эх сурвалжийг харах

[Improve][Modularization][Module_OcppBackend / Module_OcppBackend20]

2021.05.13 / Folus Wen

Actions:
1. After call sendStatusNotification() set isWebsocketSendable to 0.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 3 жил өмнө
parent
commit
6498f6bb33

+ 1 - 0
EVSE/Modularization/ocpp20/MessageHandler.c

@@ -5739,6 +5739,7 @@ void CheckSystemValue(void)
 
 			sendStatusNotificationRequest(gun_index);
 			clientTime.StatusNotification[gun_index] = time((time_t*)NULL);
+			isWebsocketSendable = OFF;
 		}
 
 		if(isWebsocketSendable && (server_sign == TRUE) && (cpinitateMsg.bits[gun_index].TransactionEventReq == ON))

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

@@ -3147,6 +3147,7 @@ void CheckSystemValue(void)
 			sendStatusNotificationRequest(gun_index);
 			clientTime.StatusNotification[gun_index] = time((time_t*)NULL);
 			statusModeChage[gun_index] = FALSE;
+			isWebsocketSendable = 0;
 		}
 
 		//==============================================