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

Public Attributes

std::string timestamp
 Timestamp of measurement.
 
Energy energy_Wh_import
 Imported energy in Wh (from grid)
 
std::optional< std::string > meter_id
 A (user defined) meter if (e.g. id printed on the case)
 
std::optional< bool > phase_seq_error
 AC only: true for 3 phase rotation error (ccw)
 
std::optional< Energyenergy_Wh_export
 Exported energy in Wh (to grid)
 
std::optional< Powerpower_W
 Instantaneous power in Watt. Negative values are exported, positive values imported Energy.
 
std::optional< Voltagevoltage_V
 Voltage in Volts.
 
std::optional< ReactivePowerVAR
 Reactive power VAR.
 
std::optional< Currentcurrent_A
 Current in ampere.
 
std::optional< Frequencyfrequency_Hz
 Grid frequency in Hertz.
 

Friends

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

Friends And Related Function Documentation

◆ operator<<

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

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