}
public static isRequestCommandSupported(
- command: RequestCommand,
- chargingStation: ChargingStation
+ chargingStation: ChargingStation,
+ command: RequestCommand
): boolean {
const isRequestCommand = Object.values(RequestCommand).includes(command);
if (
}
public static isIncomingRequestCommandSupported(
- command: IncomingRequestCommand,
- chargingStation: ChargingStation
+ chargingStation: ChargingStation,
+ command: IncomingRequestCommand
): boolean {
const isIncomingRequestCommand = Object.values(IncomingRequestCommand).includes(command);
if (
}
if (
measurand !== MeterValueMeasurand.ENERGY_ACTIVE_IMPORT_REGISTER &&
- !ChargingStationConfigurationUtils.getConfigurationKey(
+ ChargingStationConfigurationUtils.getConfigurationKey(
chargingStation,
StandardParametersKey.MeterValuesSampledData
- )?.value.includes(measurand)
+ )?.value.includes(measurand) === false
) {
logger.debug(
`${chargingStation.logPrefix()} Trying to get MeterValues measurand '${measurand}' ${onPhaseStr}in template on connectorId ${connectorId} not found in '${
chargingStation.getConnectorStatus(connectorId).MeterValues;
for (
let index = 0;
- !Utils.isEmptyArray(sampledValueTemplates) && index < sampledValueTemplates.length;
+ Utils.isEmptyArray(sampledValueTemplates) === false && index < sampledValueTemplates.length;
index++
) {
if (