Removed charging station's power recalculation
MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -277,9 +277,6 @@ export default class OCPPUtils {
break;
}
}
- // Recalculate Max Power
- // TODO
- this.recalculateChargingStationMaxPower(chargingStation);
}
// Log
Logging.logInfo({
@@ -480,18 +477,6 @@ export default class OCPPUtils {
});
}
- public static recalculateChargingStationMaxPower(chargingStation: ChargingStation) {
- let maximumPower = 0;
- for (const connector of chargingStation.connectors) {
- if (Utils.objectHasProperty(connector, 'power')) {
- maximumPower += connector.power;
- }
- }
- if (maximumPower) {
- chargingStation.maximumPower = maximumPower;
- }
- }
-
static isSocMeterValue(meterValue: OCPPNormalizedMeterValue) {
return meterValue.attribute
&& meterValue.attribute.context === 'Sample.Periodic'

Removed charging station's power recalculation