Changed the connectivity type in Android examples from WIFI to IPV4
authorTim Kourt <tim.a.kourt@intel.com>
Thu, 21 May 2015 23:49:11 +0000 (16:49 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 22 May 2015 16:35:18 +0000 (16:35 +0000)
Change-Id: I7c99aa674183d4ae80c39e1422223a004274f504
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1083
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Naga Ashok Jampani <jn.ashok@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
android/examples/fridgeclient/src/main/java/org/iotivity/base/examples/fridgeclient/FridgeClient.java
android/examples/simpleclient/src/main/java/org/iotivity/base/examples/simpleclient/SimpleClient.java

index a004c87..1043d3c 100644 (file)
@@ -88,7 +88,7 @@ public class FridgeClient extends Activity implements
         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
@@ -195,18 +195,18 @@ public class FridgeClient extends Activity implements
         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
index b747c5a..d2d2620 100644 (file)
@@ -88,7 +88,7 @@ public class SimpleClient extends Activity implements OcPlatform.OnResourceFound
              * find all resources\r
              */\r
             OcPlatform.findResource("", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "core.light",\r
-                    OcConnectivityType.WIFI, this);\r
+                    OcConnectivityType.IPV4, this);\r
         } catch (OcException e) {\r
             logMessage(TAG + "findResource error: " + e.getMessage());\r
             Log.e(TAG, e.getMessage());\r