if (!this.getConfigurationKey(StandardParametersKey.SupportedFeatureProfiles)) {
this.addConfigurationKey(
StandardParametersKey.SupportedFeatureProfiles,
- `${SupportedFeatureProfiles.Core},${SupportedFeatureProfiles.Firmware_Management},${SupportedFeatureProfiles.Local_Auth_List_Management},${SupportedFeatureProfiles.Smart_Charging},${SupportedFeatureProfiles.Remote_Trigger}`
+ `${SupportedFeatureProfiles.Core},${SupportedFeatureProfiles.FirmwareManagement},${SupportedFeatureProfiles.LocalAuthListManagement},${SupportedFeatureProfiles.SmartCharging},${SupportedFeatureProfiles.RemoteTrigger}`
);
}
this.addConfigurationKey(
if (
!this.getConfigurationKey(StandardParametersKey.LocalAuthListEnabled) &&
this.getConfigurationKey(StandardParametersKey.SupportedFeatureProfiles)?.value.includes(
- SupportedFeatureProfiles.Local_Auth_List_Management
+ SupportedFeatureProfiles.LocalAuthListManagement
)
) {
this.addConfigurationKey(StandardParametersKey.LocalAuthListEnabled, 'false');
private handleRequestSetChargingProfile(
commandPayload: SetChargingProfileRequest
): SetChargingProfileResponse {
- if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.Smart_Charging)) {
+ if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.SmartCharging)) {
logger.error(
`${this.chargingStation.logPrefix()} Trying to set charging profile(s) without '${
- OCPP16SupportedFeatureProfiles.Smart_Charging
+ OCPP16SupportedFeatureProfiles.SmartCharging
}' feature enabled in ${
OCPP16StandardParametersKey.SupportedFeatureProfiles
} in configuration`
private handleRequestClearChargingProfile(
commandPayload: ClearChargingProfileRequest
): ClearChargingProfileResponse {
- if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.Smart_Charging)) {
+ if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.SmartCharging)) {
logger.error(
`${this.chargingStation.logPrefix()} Trying to clear charging profile(s) without '${
- OCPP16SupportedFeatureProfiles.Smart_Charging
+ OCPP16SupportedFeatureProfiles.SmartCharging
}' feature enabled in ${
OCPP16StandardParametersKey.SupportedFeatureProfiles
} in configuration`
commandPayload: GetDiagnosticsRequest
): Promise<GetDiagnosticsResponse> {
if (
- !this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.Firmware_Management)
+ !this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.FirmwareManagement)
) {
logger.error(
`${this.chargingStation.logPrefix()} Trying to get diagnostics without '${
- OCPP16SupportedFeatureProfiles.Firmware_Management
+ OCPP16SupportedFeatureProfiles.FirmwareManagement
}' feature enabled in ${
OCPP16StandardParametersKey.SupportedFeatureProfiles
} in configuration`
private handleRequestTriggerMessage(
commandPayload: OCPP16TriggerMessageRequest
): OCPP16TriggerMessageResponse {
- if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.Remote_Trigger)) {
+ if (!this.chargingStation.hasFeatureProfile(OCPP16SupportedFeatureProfiles.RemoteTrigger)) {
logger.error(
`${this.chargingStation.logPrefix()} Trying to remote trigger message without '${
- OCPP16SupportedFeatureProfiles.Remote_Trigger
+ OCPP16SupportedFeatureProfiles.RemoteTrigger
}' feature enabled in ${
OCPP16StandardParametersKey.SupportedFeatureProfiles
} in configuration`
export enum OCPP16SupportedFeatureProfiles {
Core = 'Core',
- Firmware_Management = 'FirmwareManagement',
- Local_Auth_List_Management = 'LocalAuthListManagement',
+ FirmwareManagement = 'FirmwareManagement',
+ LocalAuthListManagement = 'LocalAuthListManagement',
Reservation = 'Reservation',
- Smart_Charging = 'SmartCharging',
- Remote_Trigger = 'RemoteTrigger',
+ SmartCharging = 'SmartCharging',
+ RemoteTrigger = 'RemoteTrigger',
}
export enum OCPP16StandardParametersKey {