Class WBExternalEnergyData
-
- All Implemented Interfaces:
public final class WBExternalEnergyDataRepresents the actual amount of energy provided to a wallbox.
The easiest way to create an instance is to use a WBExternalDataParser instance.
Background: The live energy data of a wallbox is stored in binary code in the external data blocks. This class and the parser are available to facilitate interpretation. Depending on the data block used, the data either originates from the solar or grid source or corresponds to the total energy.
The de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag.EXTERN_DATA_SUN block is responsible for the solar part. The de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag.EXTERN_DATA_NET block is responsible for the grid part. The de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag.EXTERN_DATA_ALL block is responsible for the total energy range.
- Since:
2.3
-
-
Field Summary
Fields Modifier and Type Field Description private final ShortpowerWprivate final IntegertotalEnergyWh
-
Constructor Summary
Constructors Constructor Description WBExternalEnergyData(Short powerW, Integer totalEnergyWh)
-
Method Summary
Modifier and Type Method Description final ShortgetPowerW()final IntegergetTotalEnergyWh()
-