this.timeToStop = false;
if (this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours &&
this.chargingStation.stationInfo.AutomaticTransactionGenerator.stopAfterHours > 0) {
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
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 {
- await Utils.sleep(500);
+ await Utils.sleep(Constants.CHARGING_STATION_ATG_INITIALIZATION_TIME);
} while (!this.chargingStation?.ocppRequestService);
}
const wait = Utils.getRandomInt(this.chargingStation.stationInfo.AutomaticTransactionGenerator.maxDelayBetweenTwoTransactions,