import { IncomingRequestCommand } from '../../types/ocpp/Requests';
import logger from '../../utils/Logger';
import type ChargingStation from '../ChargingStation';
-import { OCPP16ServiceUtils } from './1.6/OCPP16ServiceUtils';
+import { OCPPServiceUtils } from './OCPPServiceUtils';
const moduleName = 'OCPPIncomingRequestService';
validate.errors
);
throw new OCPPError(
- OCPP16ServiceUtils.AjvErrorsToErrorType(validate.errors),
+ OCPPServiceUtils.AjvErrorsToErrorType(validate.errors),
'Incoming request PDU is invalid',
commandName,
JSON.stringify(validate.errors, null, 2)
import logger from '../../utils/Logger';
import Utils from '../../utils/Utils';
import type ChargingStation from '../ChargingStation';
-import { OCPP16ServiceUtils } from './1.6/OCPP16ServiceUtils';
import type OCPPResponseService from './OCPPResponseService';
+import { OCPPServiceUtils } from './OCPPServiceUtils';
const moduleName = 'OCPPRequestService';
validate.errors
);
throw new OCPPError(
- OCPP16ServiceUtils.AjvErrorsToErrorType(validate.errors),
+ OCPPServiceUtils.AjvErrorsToErrorType(validate.errors),
'Request PDU is invalid',
commandName,
JSON.stringify(validate.errors, null, 2)
import { RequestCommand } from '../../types/ocpp/Requests';
import logger from '../../utils/Logger';
import type ChargingStation from '../ChargingStation';
-import { OCPP16ServiceUtils } from './1.6/OCPP16ServiceUtils';
+import { OCPPServiceUtils } from './OCPPServiceUtils';
const moduleName = 'OCPPResponseService';
validate.errors
);
throw new OCPPError(
- OCPP16ServiceUtils.AjvErrorsToErrorType(validate.errors),
+ OCPPServiceUtils.AjvErrorsToErrorType(validate.errors),
'Response PDU is invalid',
commandName,
JSON.stringify(validate.errors, null, 2)