public class IrTransIRDB extends IrTrans implements IRemoteCommandIrSender
IrTrans.Interface, IrTrans.IrTransTransmitter, IrTrans.Led
defaultIrTransIP, defaultTimeout, dummyDelay, inetAddress, interfaze, irTransIP, portNumber, timeout, verbose
repeatMax
repeatMax
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, setVerbosity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTransmitter
public IrTransIRDB(String hostname, boolean verbose, int timeout, IrTrans.Interface interfaze) throws UnknownHostException
UnknownHostException
public IrTransIRDB(String hostname, boolean verbose, int timeout) throws UnknownHostException
UnknownHostException
public IrTransIRDB(String hostname, boolean verbose) throws UnknownHostException
UnknownHostException
public IrTransIRDB(String hostname) throws UnknownHostException
UnknownHostException
public static String makeUrl(String hostname, String remote, String command, IrTrans.Led led)
public static void main(String[] args)
public String[] getRemotes() throws IOException
IRemoteCommandIrSender
getRemotes
in interface IRemoteCommandIrSender
IOException
public String[] getCommands(String remote) throws IOException
IRemoteCommandIrSender
getCommands
in interface IRemoteCommandIrSender
remote
- The "remote" to search inIOException
public String makeUrl(String remote, String command, IrTrans.Led led)
public boolean sendIrCommand(String remote, String command, int count, Transmitter transmitter) throws IOException, NoSuchTransmitterException
IRemoteCommandIrSender
sendIrCommand
in interface IRemoteCommandIrSender
count
- Number of times to repeat the commandIOException
NoSuchTransmitterException
public 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
IRemoteCommandIrSender
sendIrCommandRepeat
in interface IRemoteCommandIrSender
IOException
NoSuchTransmitterException
Copyright © 2016. All rights reserved.