OcPlatform.Configure(cfg);\r
try {\r
OcPlatform.findResource("", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "intel.fridge",\r
- OcConnectivityType.WIFI, this);\r
+ OcConnectivityType.IPV4, this);\r
} catch (OcException e) {\r
logMessage(TAG + " init Error. " + e.getMessage());\r
Log.e(TAG, e.getMessage());\r
lightTypes.add("intel.fridge.light");\r
try {\r
OcResource light = OcPlatform.constructResourceObject(ocResource.getHost(),\r
- StringConstants.LIGHT, OcConnectivityType.WIFI, false, lightTypes, ifaces);\r
+ StringConstants.LIGHT, OcConnectivityType.IPV4, false, lightTypes, ifaces);\r
\r
List<String> doorTypes = new LinkedList<>();\r
doorTypes.add("intel.fridge.door");\r
OcResource leftDoor = OcPlatform.constructResourceObject(ocResource.getHost(),\r
- StringConstants.LEFT_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);\r
+ StringConstants.LEFT_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);\r
\r
OcResource rightDoor = OcPlatform.constructResourceObject(ocResource.getHost(),\r
- StringConstants.RIGHT_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);\r
+ StringConstants.RIGHT_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);\r
\r
OcResource randomDoor = OcPlatform.constructResourceObject(ocResource.getHost(),\r
- StringConstants.RANDOM_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);\r
+ StringConstants.RANDOM_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);\r
\r
List<OcHeaderOption> headerOptions = new LinkedList<>();\r
OcHeaderOption apiVersion = new OcHeaderOption(StringConstants.API_VERSION_KEY,\r