this.timeToStop = false;
if (this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours &&
this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours > 0) {
this.timeToStop = false;
if (this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours &&
this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours > 0) {
setTimeout(async (): Promise<void> => {
await this.stop();
}, this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours * 3600 * 1000);
setTimeout(async (): Promise<void> => {
await this.stop();
}, this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours * 3600 * 1000);
if (!this.chargingStation?.ocppRequestService) {
logger.info(`${this.logPrefix(connectorId)} Transaction loop waiting for charging station service to be initialized`);
do {
if (!this.chargingStation?.ocppRequestService) {
logger.info(`${this.logPrefix(connectorId)} Transaction loop waiting for charging station service to be initialized`);
do {
} while (!this.chargingStation?.ocppRequestService);
}
const wait = Utils.getRandomInt(this.chargingStation.stationInfo.AutomaticTransactionGenerator.maxDelayBetweenTwoTransactions,
} while (!this.chargingStation?.ocppRequestService);
}
const wait = Utils.getRandomInt(this.chargingStation.stationInfo.AutomaticTransactionGenerator.maxDelayBetweenTwoTransactions,