testLED method

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

Tests the LED by setting the color temporarily (non-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> testLED(
    {required deviceId, required LEDColor color}) async {
  return sendCommand(deviceId, nonPersistentSetLED,
      parameters: color.toParameters(), sendFeedback: false);
}