): Promise<void> {
let response: JsonType;
if (
- chargingStation.getOcppStrictCompliance() &&
- chargingStation.isInPendingState() &&
+ chargingStation.getOcppStrictCompliance() === true &&
+ chargingStation.isInPendingState() === true &&
(commandName === OCPP16IncomingRequestCommand.REMOTE_START_TRANSACTION ||
commandName === OCPP16IncomingRequestCommand.REMOTE_STOP_TRANSACTION)
) {
}
if (
chargingStation.getConnectorStatus(connectorId).transactionRemoteStarted === true &&
- chargingStation.getAuthorizeRemoteTxRequests() &&
- chargingStation.getLocalAuthListEnabled() &&
+ chargingStation.getAuthorizeRemoteTxRequests() === true &&
+ chargingStation.getLocalAuthListEnabled() === true &&
chargingStation.hasAuthorizedTags() &&
chargingStation.getConnectorStatus(connectorId).idTagLocalAuthorized === false
) {
}
if (
chargingStation.getConnectorStatus(connectorId).transactionRemoteStarted === true &&
- chargingStation.getAuthorizeRemoteTxRequests() &&
- chargingStation.getMustAuthorizeAtRemoteStart() &&
+ chargingStation.getAuthorizeRemoteTxRequests() === true &&
+ chargingStation.getMustAuthorizeAtRemoteStart() === true &&
chargingStation.getConnectorStatus(connectorId).idTagLocalAuthorized === false &&
chargingStation.getConnectorStatus(connectorId).idTagAuthorized === false
) {
return;
}
if (payload.idTagInfo?.status === OCPP16AuthorizationStatus.ACCEPTED) {
- chargingStation.getBeginEndMeterValues() &&
- !chargingStation.getOcppStrictCompliance() &&
- chargingStation.getOutOfOrderEndMeterValues() &&
+ chargingStation.getBeginEndMeterValues() === true &&
+ chargingStation.getOcppStrictCompliance() === false &&
+ chargingStation.getOutOfOrderEndMeterValues() === true &&
(await chargingStation.ocppRequestService.requestHandler<
OCPP16MeterValuesRequest,
OCPP16MeterValuesResponse
// Persist previous value on connector
if (
connector &&
- !Utils.isNullOrUndefined(connector.energyActiveImportRegisterValue) &&
+ Utils.isNullOrUndefined(connector.energyActiveImportRegisterValue) === false &&
connector.energyActiveImportRegisterValue >= 0 &&
- !Utils.isNullOrUndefined(connector.transactionEnergyActiveImportRegisterValue) &&
+ Utils.isNullOrUndefined(connector.transactionEnergyActiveImportRegisterValue) === false &&
connector.transactionEnergyActiveImportRegisterValue >= 0
) {
connector.energyActiveImportRegisterValue += energyValueRounded;
}
): Promise<ResponseType> {
if (
- (chargingStation.isInUnknownState() && commandName === RequestCommand.BOOT_NOTIFICATION) ||
- (!chargingStation.getOcppStrictCompliance() && chargingStation.isInUnknownState()) ||
- chargingStation.isInAcceptedState() ||
- (chargingStation.isInPendingState() &&
- (params.triggerMessage || messageType === MessageType.CALL_RESULT_MESSAGE))
+ (chargingStation.isInUnknownState() === true &&
+ commandName === RequestCommand.BOOT_NOTIFICATION) ||
+ (chargingStation.getOcppStrictCompliance() === false &&
+ chargingStation.isInUnknownState() === true) ||
+ chargingStation.isInAcceptedState() === true ||
+ (chargingStation.isInPendingState() === true &&
+ (params.triggerMessage === true || messageType === MessageType.CALL_RESULT_MESSAGE))
) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const self = this;