- private async waitChargingStationServiceInitialization (connectorId: number): Promise<void> {
- let logged = false
- while (this.chargingStation?.ocppRequestService == null) {
- if (!logged) {
- logger.info(
- `${this.logPrefix(
- connectorId
- )} transaction loop waiting for charging station service to be initialized`
- )
- logged = true
- }
- await sleep(Constants.CHARGING_STATION_ATG_INITIALIZATION_TIME)
- }
- }
-