Examples of UPnPLocalStateVariable


Examples of org.osgi.service.upnp.UPnPLocalStateVariable

    UPnPStateVariable[] vars = service.getStateVariables();
    if (vars != null){
      for (int i=0;i<vars.length;i++){
        if(vars[i].sendsEvents()){
          if (vars[i] instanceof UPnPLocalStateVariable){
            UPnPLocalStateVariable localVar = (UPnPLocalStateVariable) vars[i];
            String property = localVar.getName();
            Object value = localVar.getCurrentValue();
            status.put(property,value);           
          }
          else {
            System.out.println("[Warning] The StateVariable (" +vars[i].getName() +")"
                + " of device (ID:" + deviceId   + ") "
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.