Renamed OCPP data transfer method
MODIFY
src/client/ocpi/OCPIChargingStationClient.ts
src/client/ocpi/OCPIChargingStationClient.ts
@@ -98,7 +98,7 @@ export default class OCPIChargingStationClient extends ChargingStationClient {
async updateFirmware(params: OCPPUpdateFirmwareCommandParam): Promise<void> { }
// eslint-disable-next-line @typescript-eslint/require-await
- public async triggerDataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
+ public async dataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
throw new Error('Method not implemented.');
}
}

MODIFY
src/client/ocpp/ChargingStationClient.ts
src/client/ocpp/ChargingStationClient.ts
@@ -5,7 +5,7 @@ export default abstract class ChargingStationClient {
public abstract clearCache(): Promise<OCPPClearCacheCommandResult>;
- public abstract triggerDataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult>;
+ public abstract dataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult>;
public abstract getConfiguration(params: OCPPGetConfigurationCommandParam): Promise<OCPPGetConfigurationCommandResult>;

MODIFY
src/client/ocpp/json/JsonChargingStationClient.ts
src/client/ocpp/json/JsonChargingStationClient.ts
@@ -78,7 +78,7 @@ export default class JsonChargingStationClient extends ChargingStationClient {
return this.sendMessage(params, Command.UPDATE_FIRMWARE);
}
- public async triggerDataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
+ public async dataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
return this.sendMessage(params, Command.TRIGGER_DATA_TRANSFER);
}

MODIFY
src/client/ocpp/json/JsonRestChargingStationClient.ts
src/client/ocpp/json/JsonRestChargingStationClient.ts
@@ -97,7 +97,7 @@ export default class JsonRestChargingStationClient extends ChargingStationClient
return this.sendMessage(this.buildRequest(Command.UPDATE_FIRMWARE, params));
}
- public async triggerDataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
+ public async dataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
return this.sendMessage(this.buildRequest(Command.TRIGGER_DATA_TRANSFER, params));
}

MODIFY
src/client/ocpp/soap/SoapChargingStationClient.ts
src/client/ocpp/soap/SoapChargingStationClient.ts
@@ -343,7 +343,7 @@ export default class SoapChargingStationClient extends ChargingStationClient {
}
// eslint-disable-next-line @typescript-eslint/require-await
- public async triggerDataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
+ public async dataTransfer(params: OCPPDataTransferCommandParam): Promise<OCPPDataTransferCommandResult> {
throw new Error('Method not implemented.');
}

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -1593,7 +1593,7 @@ export default class ChargingStationService {
});
break;
case Command.TRIGGER_DATA_TRANSFER:
- result = await chargingStationClient.triggerDataTransfer(params);
+ result = await chargingStationClient.dataTransfer(params);
break;
}
if (result) {

Renamed OCPP data transfer method