Skip to content

Commit

Permalink
clarify SmartCharging API doc (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Jun 5, 2024
1 parent a72104e commit 517df09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MicroOcpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,10 @@ void setEnergyMeterInput(std::function<int()> energyInput, unsigned int connecto

void setPowerMeterInput(std::function<float()> 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<void(float)> chargingLimitOutput, unsigned int connectorId = 1); //Output (in Watts) for the Smart Charging limit
void setSmartChargingCurrentOutput(std::function<void(float)> chargingLimitOutput, unsigned int connectorId = 1); //Output (in Amps) for the Smart Charging limit
void setSmartChargingOutput(std::function<void(float,float,int)> chargingLimitOutput, unsigned int connectorId = 1); //Output (in Watts, Amps, numberPhases) for the Smart Charging limit
Expand Down

0 comments on commit 517df09

Please sign in to comment.