debug = false
): OCPP16MeterValue {
const meterValue: OCPP16MeterValue = {
- timestamp: new Date().toISOString(),
+ timestamp: new Date(),
sampledValue: [],
};
const connector = chargingStation.getConnectorStatus(connectorId);
meterStart: number
): OCPP16MeterValue {
const meterValue: OCPP16MeterValue = {
- timestamp: new Date().toISOString(),
+ timestamp: new Date(),
sampledValue: [],
};
// Energy.Active.Import.Register measurand (default)
meterStop: number
): OCPP16MeterValue {
const meterValue: OCPP16MeterValue = {
- timestamp: new Date().toISOString(),
+ timestamp: new Date(),
sampledValue: [],
};
// Energy.Active.Import.Register measurand (default)
connectorId: number;
idTag: string;
meterStart: number;
- timestamp: string;
+ timestamp: Date;
reservationId?: number;
}
export interface OCPP16StopTransactionRequest extends JsonObject {
idTag?: string;
meterStop: number;
- timestamp: string;
+ timestamp: Date;
transactionId: number;
reason?: OCPP16StopTransactionReason;
transactionData?: OCPP16MeterValue[];