"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": true,
- "requireAuthorize": false
+ "requireAuthorize": true
}
```
#### Connectors section
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": true,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
"probabilityOfStart": 1,
"stopAfterHours": 0.3,
"stopOnConnectionFailure": false,
- "requireAuthorize": false
+ "requireAuthorize": true
},
"Connectors": {
"0": {},
private async startTransaction(connectorId: number, self: AutomaticTransactionGenerator): Promise<StartTransactionResponse | AuthorizeResponse> {
if (self.chargingStation.hasAuthorizedTags()) {
const tagId = self.chargingStation.getRandomTagId();
- if (self.chargingStation.stationInfo.AutomaticTransactionGenerator.requireAuthorize) {
+ if (self.chargingStation.getAutomaticTransactionGeneratorRequireAuthorize()) {
// Authorize tagId
const authorizeResponse = await self.chargingStation.ocppRequestService.sendAuthorize(tagId);
if (authorizeResponse?.idTagInfo?.status === AuthorizationStatus.ACCEPTED) {
this.startWebSocketPing();
}
+ public getAutomaticTransactionGeneratorRequireAuthorize(): boolean {
+ return this.stationInfo.AutomaticTransactionGenerator.requireAuthorize ?? true;
+ }
+
public startHeartbeat(): void {
if (this.getHeartbeatInterval() && this.getHeartbeatInterval() > 0 && !this.heartbeatSetInterval) {
// eslint-disable-next-line @typescript-eslint/no-misused-promises