setIgnoreLinkFlag method
Sets whether to ignore the link flag for composite codes.
deviceId
- The identifier of the target device.
enabled
- A boolean indicating whether to ignore (true
) or not ignore (false
) the link flag.
Returns a CommandResponse indicating the success or failure of the operation.
Implementation
Future<CommandResponse> setIgnoreLinkFlag(
{required deviceId, required bool enabled}) async {
final String command =
enabled ? compositeIgnoreLinkFlag : compositeDoNotIgnoreLinkFlag;
return sendCommand(deviceId, command);
}