RotationTrait.RotateToDegreesCommand.Request

class RotationTrait.RotateToDegreesCommand.Request : ClusterStruct


The request payload for the RotateToDegrees command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Request(rotationDegrees: Float)

Creates a request payload for the RotateToDegrees 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

Float

An absolute value that sets the final clockwise rotation of the device in number of degrees.

Public constructors

Request

Request(rotationDegrees: Float = 0.0f)

Creates a request payload for the RotateToDegrees 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

rotationDegrees

val rotationDegreesFloat

An absolute value that sets the final clockwise rotation of the device in number of degrees. This value must fall within the range specified in rotationDegreesRange.