1 import type { EmptyObject
, JsonObject
} from
'../../internal';
3 export enum MeterValueUnit
{
5 KILO_WATT_HOUR
= 'kWh',
7 KILO_VAR_HOUR
= 'kvarh',
11 KILO_VOLT_AMP
= 'kVA',
16 TEMP_CELSIUS
= 'Celsius',
17 TEMP_FAHRENHEIT
= 'Fahrenheit',
22 export enum MeterValueContext
{
23 INTERRUPTION_BEGIN
= 'Interruption.Begin',
24 INTERRUPTION_END
= 'Interruption.End',
26 SAMPLE_CLOCK
= 'Sample.Clock',
27 SAMPLE_PERIODIC
= 'Sample.Periodic',
28 TRANSACTION_BEGIN
= 'Transaction.Begin',
29 TRANSACTION_END
= 'Transaction.End',
33 export enum OCPP16MeterValueMeasurand
{
34 CURRENT_EXPORT
= 'Current.Export',
35 CURRENT_IMPORT
= 'Current.Import',
36 CURRENT_OFFERED
= 'Current.Offered',
37 ENERGY_ACTIVE_EXPORT_REGISTER
= 'Energy.Active.Export.Register',
38 ENERGY_ACTIVE_IMPORT_REGISTER
= 'Energy.Active.Import.Register',
39 ENERGY_REACTIVE_EXPORT_REGISTER
= 'Energy.Reactive.Export.Register',
40 ENERGY_REACTIVE_IMPORT_REGISTER
= 'Energy.Reactive.Import.Register',
41 ENERGY_ACTIVE_EXPORT_INTERVAL
= 'Energy.Active.Export.Interval',
42 ENERGY_ACTIVE_IMPORT_INTERVAL
= 'Energy.Active.Import.Interval',
43 ENERGY_REACTIVE_EXPORT_INTERVAL
= 'Energy.Reactive.Export.Interval',
44 ENERGY_REACTIVE_IMPORT_INTERVAL
= 'Energy.Reactive.Import.Interval',
45 FREQUENCY
= 'Frequency',
46 POWER_ACTIVE_EXPORT
= 'Power.Active.Export',
47 POWER_ACTIVE_IMPORT
= 'Power.Active.Import',
48 POWER_FACTOR
= 'Power.Factor',
49 POWER_OFFERED
= 'Power.Offered',
50 POWER_REACTIVE_EXPORT
= 'Power.Reactive.Export',
51 POWER_REACTIVE_IMPORT
= 'Power.Reactive.Import',
53 STATE_OF_CHARGE
= 'SoC',
54 TEMPERATURE
= 'Temperature',
58 export enum MeterValueLocation
{
66 export enum OCPP16MeterValuePhase
{
79 enum MeterValueFormat
{
81 SIGNED_DATA
= 'SignedData',
84 export interface OCPP16SampledValue
extends JsonObject
{
86 unit
?: MeterValueUnit
;
87 context
?: MeterValueContext
;
88 measurand
?: OCPP16MeterValueMeasurand
;
89 phase
?: OCPP16MeterValuePhase
;
90 location
?: MeterValueLocation
;
91 format
?: MeterValueFormat
;
94 export interface OCPP16MeterValue
extends JsonObject
{
96 sampledValue
: OCPP16SampledValue
[];
99 export interface OCPP16MeterValuesRequest
extends JsonObject
{
101 transactionId
?: number;
102 meterValue
: OCPP16MeterValue
[];
105 export type OCPP16MeterValuesResponse
= EmptyObject
;