setLED method

Future<CommandResponse> setLED({
  1. required dynamic deviceId,
  2. required LEDColor color,
})

Sets the LED color permanently (persistent).

deviceId - The identifier of the target device. color - The LEDColor object that contains the red, green, and blue values.

  • Returns: A CommandResponse indicating the success or failure of the operation.

Implementation

Future<CommandResponse> setLED(
    {required deviceId, required LEDColor color}) async {
  return sendCommand(deviceId, persistentSetLED,
      parameters: color.toParameters(), sendFeedback: false);
}