EnergyEvseTrait.EnableDischargingCommand.Request

class EnergyEvseTrait.EnableDischargingCommand.Request : ClusterStruct


The request payload for the EnableDischarging command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(dischargingEnabledUntil: UInt?, maximumDischargeCurrent: Long)

Creates a request payload for the EnableDischarging command.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UInt?

The time, in UTC, when discharging becomes disabled.

Long

The maximum current, in milliamps, that the EVSE can receive from the electric vehicle.

Public constructors

Request

Request(
    dischargingEnabledUntil: UInt? = null,
    maximumDischargeCurrent: Long = 0
)

Creates a request payload for the EnableDischarging command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

dischargingEnabledUntil

val dischargingEnabledUntilUInt?

The time, in UTC, when discharging becomes disabled. If the value is in the past, discharging is disabled. If the value is null, discharging is permanently enabled.

maximumDischargeCurrent

val maximumDischargeCurrentLong

The maximum current, in milliamps, that the EVSE can receive from the electric vehicle.