hal/plugins/hal-zwave/test/se/hal/plugin/zwave/HalZWaveControllerTest.java

29 lines
726 B
Java
Raw Normal View History

2019-11-22 21:05:55 +01:00
package se.hal.plugin.zwave;
import zutil.log.CompactLogFormatter;
import zutil.log.LogUtil;
import java.io.IOException;
import java.util.logging.Level;
2019-11-22 21:05:55 +01:00
/**
* @author zagumennikov
*/
public class HalZWaveControllerTest {
public static void main(String[] args) throws IOException {
LogUtil.setGlobalFormatter(new CompactLogFormatter());
LogUtil.setGlobalLevel(Level.ALL);
2019-11-22 21:05:55 +01:00
HalZWaveController controller = new HalZWaveController();
controller.initialize(
"/dev/serial/by-id/usb-0658_0200-if00",
"./plugins/hal-zwave/config");
2019-11-22 21:05:55 +01:00
System.out.println("Press ENTER to exit application.");
System.in.read();
controller.close();
}
}