public class IrTransIRDB extends IrTrans implements IRemoteCommandIrSender
IrTrans.Interface, IrTrans.IrTransTransmitter, IrTrans.LeddefaultIrTransIP, defaultTimeout, dummyDelay, inetAddress, interfaze, irTransIP, portNumber, timeout, verboserepeatMaxrepeatMax| Constructor and Description |
|---|
IrTransIRDB(String hostname) |
IrTransIRDB(String hostname,
boolean verbose) |
IrTransIRDB(String hostname,
boolean verbose,
int timeout) |
IrTransIRDB(String hostname,
boolean verbose,
int timeout,
IrTrans.Interface interfaze) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCommands(String remote)
Returns an array of command names for the remote given in the argument.
|
String[] |
getRemotes()
Returns an array of "remote" names.
|
static void |
main(String[] args) |
String |
makeUrl(String remote,
String command,
IrTrans.Led led) |
static String |
makeUrl(String hostname,
String remote,
String command,
IrTrans.Led led) |
boolean |
sendIrCommand(String remote,
String command,
int count,
IrTrans.Led led) |
boolean |
sendIrCommand(String remote,
String command,
int count,
Transmitter transmitter)
Sends the command to the hardware, to be sent count number of times.
|
boolean |
sendIrCommandRepeat(String remote,
String command,
Transmitter transmitter)
Like sendIr, but sends the IR signal until stopped by stopIr.
|
close, getTransmitter, getTransmitter, getTransmitterNames, getUri, getUrl, getVersion, isValid, newTransmitter, open, sendCcf, sendCcf, sendCcfRepeat, sendCommand, sendCommandUdp, sendIr, sendIr, setDebug, setTimeout, setVerboseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransmitterpublic IrTransIRDB(String hostname, boolean verbose, int timeout, IrTrans.Interface interfaze) throws UnknownHostException
UnknownHostExceptionpublic IrTransIRDB(String hostname, boolean verbose, int timeout) throws UnknownHostException
UnknownHostExceptionpublic IrTransIRDB(String hostname, boolean verbose) throws UnknownHostException
UnknownHostExceptionpublic IrTransIRDB(String hostname) throws UnknownHostException
UnknownHostExceptionpublic static String makeUrl(String hostname, String remote, String command, IrTrans.Led led)
public static void main(String[] args)
public String[] getRemotes() throws IOException
IRemoteCommandIrSendergetRemotes in interface IRemoteCommandIrSenderIOExceptionpublic String[] getCommands(String remote) throws IOException
IRemoteCommandIrSendergetCommands in interface IRemoteCommandIrSenderremote - The "remote" to search inIOExceptionpublic String makeUrl(String remote, String command, IrTrans.Led led)
public boolean sendIrCommand(String remote, String command, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException
IRemoteCommandIrSendersendIrCommand in interface IRemoteCommandIrSendercount - Number of times to repeat the commandIOExceptionNoSuchTransmitterExceptionpublic boolean sendIrCommand(String remote, String command, int count, IrTrans.Led led) throws IOException, NoSuchTransmitterException
public boolean sendIrCommandRepeat(String remote, String command, Transmitter transmitter) throws IOException, NoSuchTransmitterException
IRemoteCommandIrSendersendIrCommandRepeat in interface IRemoteCommandIrSenderIOExceptionNoSuchTransmitterExceptionCopyright © 2020. All rights reserved.