2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lgtvserial.internal.protocol.serial.commands;
15 import java.io.IOException;
17 import org.openhab.binding.lgtvserial.internal.protocol.serial.LGSerialCommunicator;
18 import org.openhab.binding.lgtvserial.internal.protocol.serial.LGSerialResponse;
19 import org.openhab.core.thing.ChannelUID;
22 * This command handles the IR key code M/C command.
24 * @author Richard Lavoie - Initial contribution
27 public class IRKeyCodeCommand extends BaseStringCommand {
29 protected IRKeyCodeCommand(int setId) {
30 super('m', 'c', setId);
34 public void execute(ChannelUID channel, LGSerialCommunicator comm, Object data) throws IOException {
36 super.execute(channel, comm, data);
41 public LGSerialResponse parseResponse(String response) {