Minor tweaks to get exec.connected working
This commit is contained in:
@@ -7,6 +7,7 @@ dependencies {
|
||||
|
||||
compile 'com.esotericsoftware.yamlbeans:yamlbeans:1.09'
|
||||
|
||||
// compile 'com.github.boukefalos:jlibibuddy:1.1'
|
||||
// compile 'com.github.boukefalos:jliblirc:1.1'
|
||||
compile 'com.github.boukefalos:jlibibuddy:1.1'
|
||||
compile 'com.github.boukefalos:jliblirc:1.1'
|
||||
compile 'com.github.boukefalos:jlibusb:0.5.7'
|
||||
}
|
||||
@@ -20,19 +20,15 @@ import java.io.FileReader;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.ParameterizedType;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
import yaml.Contact;
|
||||
|
||||
import com.esotericsoftware.yamlbeans.YamlReader;
|
||||
import com.esotericsoftware.yamlbeans.YamlWriter;
|
||||
|
||||
import yaml.Contact;
|
||||
|
||||
public class TestFromYaml {
|
||||
|
||||
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
YamlReader reader = new YamlReader(new FileReader("test.yml"));
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ public class TestTcpCommunication {
|
||||
|
||||
Properties iBuddyProperties = new Properties();
|
||||
iBuddyProperties.setProperty("implementation", "local");
|
||||
iBuddy iBuddy = new com.github.boukefalos.ibuddy.Loader(iBuddyProperties).getiBuddy();
|
||||
iBuddy iBuddy = new com.github.boukefalos.ibuddy.Loader(iBuddyProperties).getiBuddy();
|
||||
|
||||
Dummy dummy = new Dummy(localLirc, iBuddy);
|
||||
|
||||
Control server = localLoader.getServer();
|
||||
|
||||
@@ -16,18 +16,18 @@
|
||||
*/
|
||||
package dummy;
|
||||
|
||||
import lirc.Lirc.Color;
|
||||
import lirc.Lirc.Direction;
|
||||
import lirc.Lirc.Number;
|
||||
import lirc.Lirc.Signal;
|
||||
import base.work.Listen;
|
||||
|
||||
import com.github.boukefalos.ibuddy.iBuddy;
|
||||
import com.github.boukefalos.lirc.Lirc;
|
||||
import com.github.boukefalos.lirc.LircButton;
|
||||
import com.github.boukefalos.lirc.util.SignalObject;
|
||||
|
||||
public class Dummy extends Listen<Object> {
|
||||
import base.work.ReflectiveListen;
|
||||
import lirc.Lirc.Color;
|
||||
import lirc.Lirc.Direction;
|
||||
import lirc.Lirc.Number;
|
||||
import lirc.Lirc.Signal;
|
||||
|
||||
public class Dummy extends ReflectiveListen {
|
||||
protected Lirc lirc;
|
||||
protected iBuddy iBuddy;
|
||||
|
||||
@@ -45,7 +45,6 @@ public class Dummy extends Listen<Object> {
|
||||
public void input(SignalObject<Object> signalObject) {
|
||||
Signal signal = signalObject.signal;
|
||||
Object object = signalObject.object;
|
||||
System.out.println(object);
|
||||
try {
|
||||
// Move these mappings to config file?
|
||||
if (object instanceof LircButton) {
|
||||
|
||||
Reference in New Issue
Block a user