chargingStationId?: string;
chargePointModel: string;
chargePointVendor: string;
+ firmwareVersionPattern?: string;
firmwareVersion?: string;
numberOfConnectors?: number | number[];
baseName: string;
phaseLineToLineVoltageMeterValues?: boolean;
customValueLimitationMeterValues?: boolean;
commandsSupport?: CommandsSupport;
+ messageTriggerSupport?: Record<MessageTrigger, boolean>;
};
export enum OCPP16IncomingRequestCommand {
interval: number;
}
+export enum OCPP16MessageTrigger {
+ BootNotification = 'BootNotification',
+ DiagnosticsStatusNotification = 'DiagnosticsStatusNotification',
+ FirmwareStatusNotification = 'FirmwareStatusNotification',
+ Heartbeat = 'Heartbeat',
+ MeterValues = 'MeterValues',
+ StatusNotification = 'StatusNotification',
+}
+
+export type MessageTrigger = OCPP16MessageTrigger;
+
+export const MessageTrigger = {
+ ...OCPP16MessageTrigger,
+};
+
type CommandsSupport = {
incomingCommands: Record<IncomingRequestCommand, boolean>;
outgoingCommands?: Record<RequestCommand, boolean>;
}
export enum OCPPProtocol {
- SOAP = 'soap',
JSON = 'json',
}