From 517df096b1e4e476e3a00d028e3fc448ac75aead Mon Sep 17 00:00:00 2001 From: matth-x <63792403+matth-x@users.noreply.github.com> Date: Wed, 5 Jun 2024 20:04:00 +0200 Subject: [PATCH] clarify SmartCharging API doc (#310) --- src/MicroOcpp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MicroOcpp.h b/src/MicroOcpp.h index 0a774ab0..93a991be 100644 --- a/src/MicroOcpp.h +++ b/src/MicroOcpp.h @@ -276,8 +276,10 @@ void setEnergyMeterInput(std::function energyInput, unsigned int connecto void setPowerMeterInput(std::function powerInput, unsigned int connectorId = 1); //Input of the power meter reading in W -//Smart Charging Output, alternative for Watts only, Current only, or Watts x Current x numberPhases. Only one -//of them can be set at a time +//Smart Charging Output, alternative for Watts only, Current only, or Watts x Current x numberPhases. +//Only one of the Smart Charging Outputs can be set at a time. +//MO will execute the callback whenever the OCPP charging limit changes and will pass the limit for now +//to the callback. If OCPP does not define a limit, then MO passes the value -1 for "undefined". void setSmartChargingPowerOutput(std::function chargingLimitOutput, unsigned int connectorId = 1); //Output (in Watts) for the Smart Charging limit void setSmartChargingCurrentOutput(std::function chargingLimitOutput, unsigned int connectorId = 1); //Output (in Amps) for the Smart Charging limit void setSmartChargingOutput(std::function chargingLimitOutput, unsigned int connectorId = 1); //Output (in Watts, Amps, numberPhases) for the Smart Charging limit