Commit 343f20bd authored by Tim Kourt's avatar Tim Kourt Committed by Erich Keane

Changed the connectivity type in Android examples from WIFI to IPV4

Change-Id: I7c99aa674183d4ae80c39e1422223a004274f504
Signed-off-by: default avatarTim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1083Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarNaga Ashok Jampani <jn.ashok@samsung.com>
Reviewed-by: default avatarErich Keane <erich.keane@intel.com>
parent a25adf4c
......@@ -88,7 +88,7 @@ public class FridgeClient extends Activity implements
OcPlatform.Configure(cfg);
try {
OcPlatform.findResource("", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "intel.fridge",
OcConnectivityType.WIFI, this);
OcConnectivityType.IPV4, this);
} catch (OcException e) {
logMessage(TAG + " init Error. " + e.getMessage());
Log.e(TAG, e.getMessage());
......@@ -195,18 +195,18 @@ public class FridgeClient extends Activity implements
lightTypes.add("intel.fridge.light");
try {
OcResource light = OcPlatform.constructResourceObject(ocResource.getHost(),
StringConstants.LIGHT, OcConnectivityType.WIFI, false, lightTypes, ifaces);
StringConstants.LIGHT, OcConnectivityType.IPV4, false, lightTypes, ifaces);
List<String> doorTypes = new LinkedList<>();
doorTypes.add("intel.fridge.door");
OcResource leftDoor = OcPlatform.constructResourceObject(ocResource.getHost(),
StringConstants.LEFT_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);
StringConstants.LEFT_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);
OcResource rightDoor = OcPlatform.constructResourceObject(ocResource.getHost(),
StringConstants.RIGHT_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);
StringConstants.RIGHT_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);
OcResource randomDoor = OcPlatform.constructResourceObject(ocResource.getHost(),
StringConstants.RANDOM_DOOR, OcConnectivityType.WIFI, false, doorTypes, ifaces);
StringConstants.RANDOM_DOOR, OcConnectivityType.IPV4, false, doorTypes, ifaces);
List<OcHeaderOption> headerOptions = new LinkedList<>();
OcHeaderOption apiVersion = new OcHeaderOption(StringConstants.API_VERSION_KEY,
......
......@@ -88,7 +88,7 @@ public class SimpleClient extends Activity implements OcPlatform.OnResourceFound
* find all resources
*/
OcPlatform.findResource("", OcPlatform.WELL_KNOWN_QUERY + "?rt=" + "core.light",
OcConnectivityType.WIFI, this);
OcConnectivityType.IPV4, this);
} catch (OcException e) {
logMessage(TAG + "findResource error: " + e.getMessage());
Log.e(TAG, e.getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment