ErrorType,
type JsonObject,
type JsonType,
- OCPP16StandardParametersKey,
type OCPP20BootNotificationResponse,
type OCPP20ClearCacheResponse,
type OCPP20HeartbeatResponse,
OCPP20IncomingRequestCommand,
+ OCPP20OptionalVariableName,
OCPP20RequestCommand,
type OCPP20StatusNotificationResponse,
OCPPVersion,
if (payload.status === RegistrationStatusEnumType.ACCEPTED) {
ChargingStationConfigurationUtils.addConfigurationKey(
chargingStation,
- OCPP16StandardParametersKey.HeartbeatInterval,
+ OCPP20OptionalVariableName.HeartbeatInterval,
payload.interval.toString(),
{},
{ overwrite: true, save: true }
);
- ChargingStationConfigurationUtils.addConfigurationKey(
- chargingStation,
- OCPP16StandardParametersKey.HeartBeatInterval,
- payload.interval.toString(),
- { visible: false },
- { overwrite: true, save: true }
- );
chargingStation.heartbeatSetInterval
? chargingStation.restartHeartbeat()
: chargingStation.startHeartbeat();
--- /dev/null
+export enum OCPP20ComponentName {
+ AlignedDataCtrlr = 'AlignedDataCtrlr',
+ AuthCacheCtrlr = 'AuthCacheCtrlr',
+ AuthCtrlr = 'AuthCtrlr',
+ CHAdeMOCtrlr = 'CHAdeMOCtrlr',
+ ClockCtrlr = 'ClockCtrlr',
+ CustomizationCtrlr = 'CustomizationCtrlr',
+ DeviceDataCtrlr = 'DeviceDataCtrlr',
+ DisplayMessageCtrlr = 'DisplayMessageCtrlr',
+ ISO15118Ctrlr = 'ISO15118Ctrlr',
+ LocalAuthListCtrlr = 'LocalAuthListCtrlr',
+ MonitoringCtrlr = 'MonitoringCtrlr',
+ OCPPCommCtrlr = 'OCPPCommCtrlr',
+ ReservationCtrlr = 'ReservationCtrlr',
+ SampledDataCtrlr = 'SampledDataCtrlr',
+ SecurityCtrlr = 'SecurityCtrlr',
+ SmartChargingCtrlr = 'SmartChargingCtrlr',
+ TariffCostCtrlr = 'TariffCostCtrlr',
+ TxCtrlr = 'TxCtrlr',
+}
+
+export enum OCPP20RequiredVariableName {
+ MessageTimeout = 'MessageTimeout',
+ FileTransferProtocols = 'FileTransferProtocols',
+ NetworkConfigurationPriority = 'NetworkConfigurationPriority',
+ NetworkProfileConnectionAttempts = 'NetworkProfileConnectionAttempts',
+ OfflineThreshold = 'OfflineThreshold',
+ MessageAttempts = 'TransactionEvent',
+ MessageAttemptInterval = 'MessageAttemptInterval',
+ UnlockOnEVSideDisconnect = 'UnlockOnEVSideDisconnect',
+ ResetRetries = 'ResetRetries',
+ ItemsPerMessage = 'ItemsPerMessage',
+ BytesPerMessage = 'BytesPerMessage',
+ DateTime = 'DateTime',
+ TimeSource = 'TimeSource',
+ OrganizationName = 'OrganizationName',
+ CertificateEntries = 'CertificateEntries',
+ SecurityProfile = 'SecurityProfile',
+ AuthorizeRemoteStart = 'AuthorizeRemoteStart',
+ LocalAuthorizeOffline = 'LocalAuthorizeOffline',
+ LocalPreAuthorize = 'LocalPreAuthorize',
+ EVConnectionTimeOut = 'EVConnectionTimeOut',
+ StopTxOnEVSideDisconnect = 'StopTxOnEVSideDisconnect',
+ TxStartPoint = 'TxStartPoint',
+ TxStopPoint = 'TxStopPoint',
+ StopTxOnInvalidId = 'StopTxOnInvalidId',
+ TxEndedMeasurands = 'TxEndedMeasurands',
+ TxStartedMeasurands = 'TxStartedMeasurands',
+ TxUpdatedMeasurands = 'TxUpdatedMeasurands',
+ TxUpdatedInterval = 'TxUpdatedInterval',
+}
+
+export enum OCPP20OptionalVariableName {
+ HeartbeatInterval = 'HeartbeatInterval',
+ WebSocketPingInterval = 'WebSocketPingInterval',
+}
+
+export enum OCPP20VendorVariableName {
+ ConnectionUrl = 'ConnectionUrl',
+}
OCPP16SupportedFeatureProfiles,
OCPP16VendorDefaultParametersKey,
} from './1.6/Configuration';
+import {
+ OCPP20OptionalVariableName,
+ OCPP20RequiredVariableName,
+ OCPP20VendorVariableName,
+} from './2.0/Variables';
import type { JsonObject } from '../JsonType';
export const StandardParametersKey = {
...OCPP16StandardParametersKey,
+ ...OCPP20RequiredVariableName,
+ ...OCPP20OptionalVariableName,
} as const;
export type StandardParametersKey = OCPP16StandardParametersKey;
export const VendorDefaultParametersKey = {
...OCPP16VendorDefaultParametersKey,
+ ...OCPP20VendorVariableName,
} as const;
export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey;