type OCPP16ClearChargingProfileResponse,
type OCPP16DataTransferRequest,
type OCPP16DataTransferResponse,
- OCPP16DataTransferVendorId,
OCPP16DiagnosticsStatus,
type OCPP16DiagnosticsStatusNotificationRequest,
type OCPP16DiagnosticsStatusNotificationResponse,
): OCPP16DataTransferResponse {
const { vendorId } = commandPayload
try {
- if (Object.values(OCPP16DataTransferVendorId).includes(vendorId)) {
+ if (vendorId === chargingStation.stationInfo?.chargePointVendor) {
return OCPP16Constants.OCPP_DATA_TRANSFER_RESPONSE_ACCEPTED
}
return OCPP16Constants.OCPP_DATA_TRANSFER_RESPONSE_UNKNOWN_VENDOR_ID
type OCPP16ClearCacheRequest,
type OCPP16ClearChargingProfileRequest,
type OCPP16DataTransferRequest,
- OCPP16DataTransferVendorId,
type OCPP16DiagnosticsStatusNotificationRequest,
OCPP16FirmwareStatus,
type OCPP16FirmwareStatusNotificationRequest,
Operative = 'Operative',
}
-export enum OCPP16DataTransferVendorId {}
-
export enum OCPP16FirmwareStatus {
Downloaded = 'Downloaded',
DownloadFailed = 'DownloadFailed',