Skip to content

Commit

Permalink
Issue 86: update init api in server
Browse files Browse the repository at this point in the history
Signed-off-by: Zihe Cheng <lydiazcheng@users.noreply.github.com>
  • Loading branch information
lydiazcheng committed Feb 5, 2025
1 parent d3a515b commit 611d3ea
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 0 additions & 4 deletions 03_Modules/EVDriver/src/module/DataApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export class EVDriverModuleApi
super(evDriverModule, server, logger);
}

/**
* Data Endpoint Methods
*/

@AsDataEndpoint(
OCPP2_0_1_Namespace.AuthorizationData,
HttpMethod.Put,
Expand Down
4 changes: 0 additions & 4 deletions 03_Modules/EVDriver/src/module/Ocpp16Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ export class EVDriverModuleApi
super(evDriverModule, server, logger);
}

/**
* Message Endpoint Methods for OCPP 1.6
*/

@AsMessageEndpoint(
OCPP1_6_CallAction.RemoteStopTransaction,
OCPP1_6.RemoteStopTransactionRequestSchema,
Expand Down
4 changes: 0 additions & 4 deletions 03_Modules/EVDriver/src/module/Ocpp201Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ export class EVDriverModuleApi
super(evDriverModule, server, logger);
}

/**
* Message Endpoint Methods
*/

@AsMessageEndpoint(
OCPP2_0_1_CallAction.RequestStartTransaction,
OCPP2_0_1.RequestStartTransactionRequestSchema,
Expand Down
2 changes: 1 addition & 1 deletion 03_Modules/EVDriver/src/module/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ export class EVDriverModule extends AbstractModule {
props?: HandlerProperties,
): Promise<void> {
this._logger.debug(
'RequestStopTransactionResponse received:',
'OCPP 1.6 RemoteStopTransaction response received:',
message,
props,
);
Expand Down
8 changes: 5 additions & 3 deletions Server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,11 @@ export class CitrineOSServer {
this._idGenerator,
);
await this.initHandlersAndAddModule(module);
this.apis.push(new EVDriverOcpp201MessageApi(module, this._server, this._logger));
this.apis.push(new EVDriverOcpp16MessageApi(module, this._server, this._logger));
this.apis.push(new EVDriverDataApi(module, this._server, this._logger));
this.apis.push(
new EVDriverOcpp201MessageApi(module, this._server, this._logger),
new EVDriverOcpp16MessageApi(module, this._server, this._logger),
new EVDriverDataApi(module, this._server, this._logger)
);
}

private async initMonitoringModule() {
Expand Down

0 comments on commit 611d3ea

Please sign in to comment.