ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Attributes | Friends | List of all members
ocpp::Energy Struct Reference

Public Attributes

float total
 DC / AC Sum value (which is relevant for billing)
 
std::optional< float > L1
 AC L1 value only.
 
std::optional< float > L2
 AC L2 value only.
 
std::optional< float > L3
 AC L3 value only.
 

Friends

void to_json (json &j, const Energy &k)
 Conversion from a given Energy k to a given json object j.
 
void from_json (const json &j, Energy &k)
 Conversion from a given json object j to a given Energy k.
 
std::ostream & operator<< (std::ostream &os, const Energy &k)
 

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Energy k 
)
friend
Returns
an output stream with the Energy written to

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