Started migration to new zigbee library
This commit is contained in:
parent
e59d65fac0
commit
48e0c065b6
6 changed files with 306 additions and 170 deletions
|
|
@ -24,13 +24,13 @@
|
|||
|
||||
package se.hal.plugin.zigbee;
|
||||
|
||||
import org.bubblecloud.zigbee.v3.ZigBeeDevice;
|
||||
import zutil.log.CompactLogFormatter;
|
||||
import zutil.log.LogUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
|
||||
|
||||
public class HalZigbeeControllerTest {
|
||||
|
||||
public static void main(String[] args) throws IOException, InterruptedException {
|
||||
|
|
@ -38,18 +38,7 @@ public class HalZigbeeControllerTest {
|
|||
LogUtil.setGlobalLevel(Level.ALL);
|
||||
|
||||
HalZigbeeController controller = new HalZigbeeController();
|
||||
controller.initialize("COM3", -6);
|
||||
|
||||
System.out.println("Enable pairing.");
|
||||
controller.zigbeeApi.permitJoin(true);
|
||||
|
||||
//controller.zigbeeApi
|
||||
|
||||
Thread.sleep(10000);
|
||||
|
||||
for (ZigBeeDevice device : controller.zigbeeApi.getDevices()) {
|
||||
System.out.println("Device: " + device);
|
||||
}
|
||||
controller.initialize("COM3");
|
||||
|
||||
System.out.println("Press ENTER to exit application.");
|
||||
System.in.read();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue