public async sendAuthorize(idTag?: string): Promise<OCPP16AuthorizeResponse> {
try {
const payload: AuthorizeRequest = {
- ...!Utils.isUndefined(idTag) ? { idTag } : { idTag: Constants.TRANSACTION_DEFAULT_TAGID },
+ ...!Utils.isUndefined(idTag) ? { idTag } : { idTag: Constants.TRANSACTION_DEFAULT_IDTAG },
};
return await this.sendMessage(Utils.generateUUID(), payload, MessageType.CALL_MESSAGE, OCPP16RequestCommand.AUTHORIZE) as OCPP16AuthorizeResponse;
} catch (error) {
try {
const payload: StartTransactionRequest = {
connectorId,
- ...!Utils.isUndefined(idTag) ? { idTag } : { idTag: Constants.TRANSACTION_DEFAULT_TAGID },
+ ...!Utils.isUndefined(idTag) ? { idTag } : { idTag: Constants.TRANSACTION_DEFAULT_IDTAG },
meterStart: 0,
timestamp: new Date().toISOString(),
};
static readonly CHARGING_STATION_ATG_WAIT_TIME = 2000; // Ms
static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms
- static readonly TRANSACTION_DEFAULT_TAGID = '00000000';
+ static readonly TRANSACTION_DEFAULT_IDTAG = '00000000';
static readonly WORKER_START_DELAY = 500;
static readonly WORKER_POOL_MAX_INACTIVE_TIME = 60000;