Add ClearCache command support.
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Nov 2020 13:18:41 +0000 (14:18 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Nov 2020 13:18:41 +0000 (14:18 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index af0a3f0fbe718177d7dc3f9669da0e60d184163b..59d360b540998a0ef24ed8ee20f84617e9126ad3 100644 (file)
@@ -1238,6 +1238,10 @@ export default class ChargingStation {
     return Constants.OCPP_RESPONSE_ACCEPTED;
   }
 
+  handleRequestClearCache(): DefaultRequestResponse {
+    return Constants.OCPP_RESPONSE_ACCEPTED;
+  }
+
   async handleRequestUnlockConnector(commandPayload): Promise<UnlockResponse> {
     const connectorId = Utils.convertToInt(commandPayload.connectorId);
     if (connectorId === 0) {