Package org.osgi.service.zigbee

Examples of org.osgi.service.zigbee.ZigBeeCommand.invoke()


  private void lock(ZigBeeEndpoint lock) {
    ZigBeeCluster zigbeeCluster = lock.getServerCluster(0x101);
    ZigBeeCommand lockCommand = zigbeeCluster.getCommand(0);

    try {
      lockCommand.invoke(new byte[] {}, this);
      System.out.println("locked");
    } catch (ZigBeeException e) {
    }
  }
 
View Full Code Here


  private void unlock(ZigBeeEndpoint lock) {
    ZigBeeCluster zigbeeCluster = lock.getServerCluster(0x101);
    ZigBeeCommand lockCommand = zigbeeCluster.getCommand(1);

    try {
      lockCommand.invoke(new byte[] {}, this);
      System.out.println("unlocked");
    } catch (ZigBeeException e) {
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.