1 import type { EmptyObject
} from
'../../EmptyObject';
2 import type { JsonObject
} from
'../../JsonType';
4 export enum MeterValueUnit
{
6 KILO_WATT_HOUR
= 'kWh',
8 KILO_VAR_HOUR
= 'kvarh',
12 KILO_VOLT_AMP
= 'kVA',
17 TEMP_CELSIUS
= 'Celsius',
18 TEMP_FAHRENHEIT
= 'Fahrenheit',
23 export enum MeterValueContext
{
24 INTERRUPTION_BEGIN
= 'Interruption.Begin',
25 INTERRUPTION_END
= 'Interruption.End',
27 SAMPLE_CLOCK
= 'Sample.Clock',
28 SAMPLE_PERIODIC
= 'Sample.Periodic',
29 TRANSACTION_BEGIN
= 'Transaction.Begin',
30 TRANSACTION_END
= 'Transaction.End',
34 export enum OCPP16MeterValueMeasurand
{
35 CURRENT_EXPORT
= 'Current.Export',
36 CURRENT_IMPORT
= 'Current.Import',
37 CURRENT_OFFERED
= 'Current.Offered',
38 ENERGY_ACTIVE_EXPORT_REGISTER
= 'Energy.Active.Export.Register',
39 ENERGY_ACTIVE_IMPORT_REGISTER
= 'Energy.Active.Import.Register',
40 ENERGY_REACTIVE_EXPORT_REGISTER
= 'Energy.Reactive.Export.Register',
41 ENERGY_REACTIVE_IMPORT_REGISTER
= 'Energy.Reactive.Import.Register',
42 ENERGY_ACTIVE_EXPORT_INTERVAL
= 'Energy.Active.Export.Interval',
43 ENERGY_ACTIVE_IMPORT_INTERVAL
= 'Energy.Active.Import.Interval',
44 ENERGY_REACTIVE_EXPORT_INTERVAL
= 'Energy.Reactive.Export.Interval',
45 ENERGY_REACTIVE_IMPORT_INTERVAL
= 'Energy.Reactive.Import.Interval',
46 FREQUENCY
= 'Frequency',
47 POWER_ACTIVE_EXPORT
= 'Power.Active.Export',
48 POWER_ACTIVE_IMPORT
= 'Power.Active.Import',
49 POWER_FACTOR
= 'Power.Factor',
50 POWER_OFFERED
= 'Power.Offered',
51 POWER_REACTIVE_EXPORT
= 'Power.Reactive.Export',
52 POWER_REACTIVE_IMPORT
= 'Power.Reactive.Import',
54 STATE_OF_CHARGE
= 'SoC',
55 TEMPERATURE
= 'Temperature',
59 export enum MeterValueLocation
{
67 export enum OCPP16MeterValuePhase
{
80 export enum MeterValueFormat
{
82 SIGNED_DATA
= 'SignedData',
85 export interface OCPP16SampledValue
extends JsonObject
{
87 unit
?: MeterValueUnit
;
88 context
?: MeterValueContext
;
89 measurand
?: OCPP16MeterValueMeasurand
;
90 phase
?: OCPP16MeterValuePhase
;
91 location
?: MeterValueLocation
;
92 format
?: MeterValueFormat
;
95 export interface OCPP16MeterValue
extends JsonObject
{
97 sampledValue
: OCPP16SampledValue
[];
100 export interface OCPP16MeterValuesRequest
extends JsonObject
{
102 transactionId
?: number;
103 meterValue
: OCPP16MeterValue
[];
106 export type OCPP16MeterValuesResponse
= EmptyObject
;