use of com.github.paolodenti.jsapp.core.command.Sapp75Command in project openhab1-addons by openhab.
the class SappCentralExecuter method executeSapp75Command.
/**
* runs 75 command
*/
public int executeSapp75Command(String ip, int port, byte address) throws SappException {
synchronized (this) {
SappCommand sappCommand = new Sapp75Command(address);
sappCommand.run(ip, port);
if (!sappCommand.isResponseOk()) {
throw new SappException("command execution failed");
}
return sappCommand.getResponse().getDataAsWord();
}
}
Aggregations