setLED

abstract suspend fun setLED(deviceId: String, color: LEDColor): CommandResponse

Sets the LED color for the given deviceId.

Return

A CommandResponse indicating the result.

Parameters

deviceId

The identifier of the target device.

color

The LED color.


abstract fun setLED(deviceId: String, color: LEDColor, callback: (Result<CommandResponse>) -> Unit)

Callback-based version of setLED for Java interoperability.

Parameters

deviceId

The identifier of the target device.

color

The LED color.

callback

Callback to receive the CommandResponse.