Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
this.chargingStation = chargingStation;
}
- public handleIncomingRequestError(commandName: IncomingRequestCommand, error: Error, ocppResponse?): unknown {
+ protected handleIncomingRequestError(commandName: IncomingRequestCommand, error: Error, ocppResponse?): unknown {
logger.error(this.chargingStation.logPrefix() + ' Incoming request command ' + commandName + ' error: %j', error);
if (ocppResponse) {
return ocppResponse;
});
}
- public handleRequestError(commandName: RequestCommand, error: Error): void {
+ protected handleRequestError(commandName: RequestCommand, error: Error): void {
logger.error(this.chargingStation.logPrefix() + ' Request command ' + commandName + ' error: %j', error);
throw error;
}
import { MeterValueMeasurand } from '../types/ocpp/MeterValues';
export default class Constants {
- static readonly ENTITY_CHARGING_STATION = 'ChargingStation';
- static readonly ENTITY_AUTOMATIC_TRANSACTION_GENERATOR = 'AutomaticTransactionGenerator';
-
static readonly OCPP_RESPONSE_EMPTY = Object.freeze({});
static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status: DefaultStatus.ACCEPTED });
static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ status: DefaultStatus.REJECTED });