|
@@ -24,13 +24,7 @@ public class ObtInitHandler implements OCMainInitHandler {
|
|
|
Log.d(TAG, "inside ObtInitHandler.initialize()");
|
|
|
int ret = obtPlatform.platformInit("OCF"); // Manufaturer Name
|
|
|
if (ret >= 0) {
|
|
|
- OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.0.5", "ocf.res.1.0.0,ocf.sh.1.0.0");
|
|
|
- /*,
|
|
|
- new OCAddDeviceHandler() {
|
|
|
- public void handler() {
|
|
|
- Log.d(TAG, "inside Obt.OCAddDeviceHandler.handler()");
|
|
|
- }
|
|
|
- });*/
|
|
|
+ OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.5.0", "ocf.res.1.3.0,ocf.sh.1.3.0");
|
|
|
ret |= obtPlatform.addDevice(device);
|
|
|
// Note: device must be added to platform before additional resource types can be added
|
|
|
device.bindResourceType("oic.d.ams");
|