package org.iotivity.service.ppm;
+import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
+
import org.iotivity.base.ModeType;
import org.iotivity.base.OcConnectivityType;
import org.iotivity.base.OcException;
import org.iotivity.base.PlatformConfig;
import org.iotivity.base.QualityOfService;
import org.iotivity.base.ServiceType;
-import org.iotivity.service.ppm.R;
import android.app.Activity;
import android.content.Context;
try {
FoundResource foundResource = new FoundResource();
OcPlatform.findResource("", OcPlatform.WELL_KNOWN_QUERY,
- OcConnectivityType.CT_DEFAULT, foundResource);
+ EnumSet.of(OcConnectivityType.CT_DEFAULT), foundResource);
} catch (Exception e) {
Log.e(LOG_TAG, "Exception : " + e);
}
OcPlatform
.findResource(
"", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "device.smartplug",
- OcConnectivityType.CT_DEFAULT, foundResource);
+ EnumSet.of(OcConnectivityType.CT_DEFAULT), foundResource);
} catch (OcException e) {
e.printStackTrace();
}
OcPlatform
.findResource(
"", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "device.notify",
- OcConnectivityType.CT_DEFAULT, foundResource);
+ EnumSet.of(OcConnectivityType.CT_DEFAULT), foundResource);
} catch (OcException e) {
e.printStackTrace();
}
OcPlatform
.findResource(
"", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "device.light",
- OcConnectivityType.CT_DEFAULT, foundResource);
+ EnumSet.of(OcConnectivityType.CT_DEFAULT), foundResource);
} catch (OcException e) {
e.printStackTrace();
}