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

28 lines
726 B
Java

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