.getWeMoDeviceByUDN(udn);
if ((listDevice != null) && (listDevice.isAvailable())) {
PlatformConfig cfg = new PlatformConfig(
- this,
+ getBaseContext(),
ServiceType.IN_PROC,
ModeType.CLIENT_SERVER, "0.0.0.0", 0,
QualityOfService.LOW);
.registerResource(
"/a/wemo",
"device.smartplug",
- "oc.mi.def",
+ OcPlatform.DEFAULT_INTERFACE,
entitycb,
EnumSet.of(ResourceProperty.DISCOVERABLE));
} catch (OcException e) {