DeviceEnergyManagementModeCommands

interface DeviceEnergyManagementModeCommands

Known direct subclasses
DeviceEnergyManagementMode

API for the DeviceEnergyManagementMode trait.


Summary

Public functions

suspend DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response
changeToMode(newMode: UByte)

Change device modes.

Public functions

changeToMode

suspend fun changeToMode(newMode: UByte): DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response

Change device modes.

Parameters
newMode: UByte

The mode to change to. This must be one of the supportedModes.

Returns
DeviceEnergyManagementModeTrait.ChangeToModeCommand.Response

The result of the completed ChangeToMode command.