ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | Public Attributes | List of all members
ocpp::v16::period_entry_t Struct Reference

Public Member Functions

void init (const DateTime &in_start, int in_duration, const ChargingSchedulePeriod &in_period, const ChargingProfile &in_profile)
 populate a schedule period More...
 
bool validate (const ChargingProfile &profile, const DateTime &now)
 validate and update entry based on profile More...
 

Public Attributes

DateTime start
 
DateTime end
 
float limit
 
std::optional< std::int32_t > number_phases
 
std::int32_t stack_level
 
ChargingRateUnit charging_rate_unit
 
std::optional< float > min_charging_rate
 

Member Function Documentation

◆ init()

void ocpp::v16::period_entry_t::init ( const DateTime in_start,
int  in_duration,
const ChargingSchedulePeriod in_period,
const ChargingProfile in_profile 
)

populate a schedule period

Parameters
in_startthe start time of the profile
in_durationthe time in seconds from the start of the profile to the end of this period
in_periodthe details of this period

◆ validate()

bool ocpp::v16::period_entry_t::validate ( const ChargingProfile profile,
const DateTime now 
)

validate and update entry based on profile

Parameters
profilethe profile this entry is part of
nowthe current date and time
Returns
true when the entry is valid

The documentation for this struct was generated from the following files: