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

Public Attributes

float value
 State of Charge in percent.
 
std::optional< std::string > location
 Location of the State of Charge measurement.
 

Friends

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

Friends And Related Function Documentation

◆ operator<<

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

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