+ logger.info(this._logPrefix() + ' ATG started and will stop in ' + Utils.secondstoHHMMSS(this._chargingStation._stationInfo.AutomaticTransactionGenerator.stopAfterHours * 3600));
+ }
+
+ async stop(reason = '') {
+ logger.info(this._logPrefix() + ' ATG OVER => STOPPING ALL TRANSACTIONS');
+ for (const connector in this._chargingStation._connectors) {
+ if (this._chargingStation.getConnector(connector).transactionStarted) {
+ logger.info(this._logPrefix(connector) + ' ATG OVER. Stop transaction ' + this._chargingStation.getConnector(connector).transactionId);
+ await this._chargingStation.sendStopTransaction(this._chargingStation.getConnector(connector).transactionId, reason);
+ }
+ }
+ this._timeToStop = true;