use of org.cybergarage.upnp.ControlPoint in project felix by apache.
the class MyCtrlPoint method findDeviceCtrl.
public Device findDeviceCtrl(ControlPoint ctrl, String udn) {
/*
* this return the device looking in all the struct
*/
DeviceList devList = getDeviceList();
Device dev = null;
int i = 0;
while (i < devList.size() && (dev == null)) {
if (devList.getDevice(i).getUDN().equals(udn)) {
dev = devList.getDevice(i);
return dev;
}
dev = findDevice(udn, devList.getDevice(i));
i++;
}
return dev;
}
Aggregations