DeviceEnergyManagementTrait.PowerAdjustRequestCommand.Request

class DeviceEnergyManagementTrait.PowerAdjustRequestCommand.Request


The request payload for the PowerAdjustRequest command.

Summary

Public constructors

Request(
    power: Long,
    duration: UInt,
    cause: DeviceEnergyManagementTrait.AdjustmentCauseEnum
)

Creates a request payload for the PowerAdjustRequest command.

Public properties

DeviceEnergyManagementTrait.AdjustmentCauseEnum

The cause of the request from the EMS.

UInt

The duration, in seconds, for which the CSA can adjust its power consumption.

Long

The power, in milliwatts, that the ESA can use during the adjustment period.

Public constructors

Request

Request(
    power: Long = 0,
    duration: UInt,
    cause: DeviceEnergyManagementTrait.AdjustmentCauseEnum = AdjustmentCauseEnum.LocalOptimization
)

Creates a request payload for the PowerAdjustRequest command.

Public properties

cause

val causeDeviceEnergyManagementTrait.AdjustmentCauseEnum

The cause of the request from the EMS.

duration

val durationUInt

The duration, in seconds, for which the CSA can adjust its power consumption. This value must be within the range of MinDuration and MaxDuration in the PowerAdjustStruct.

power

val powerLong

The power, in milliwatts, that the ESA can use during the adjustment period. This value must be within the range of MinPower and MaxPower in the PowerAdjustStruct.