Commit 08edc8c8 authored by George Nash's avatar George Nash

Fix build error in android samples

Change-Id: Ic7f1847dc053b101264fbcc773859598be16c26d
Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
parent d861b705
......@@ -23,9 +23,8 @@ public class OwnedDeviceHandler implements OCObtDiscoveryHandler {
String deviceId = OCUuidUtil.uuidToString(uuid);
Log.d(TAG, "discovered owned device: " + deviceId + " at:");
while (endpoints != null) {
String[] endpointStr = new String[1];
OCEndpointUtil.toString(endpoints, endpointStr);
Log.d(TAG, endpointStr[0]);
String endpointStr = OCEndpointUtil.toString(endpoints);
Log.d(TAG, endpointStr);
endpoints = endpoints.getNext();
}
......
......@@ -23,9 +23,8 @@ public class UnownedDeviceHandler implements OCObtDiscoveryHandler {
String deviceId = OCUuidUtil.uuidToString(uuid);
Log.d(TAG, "discovered unowned device: " + deviceId + " at:");
while (endpoints != null) {
String[] endpointStr = new String[1];
OCEndpointUtil.toString(endpoints, endpointStr);
Log.d(TAG, endpointStr[0]);
String[] endpointStr = OCEndpointUtil.toString(endpoints);
Log.d(TAG, endpointStr);
endpoints = endpoints.getNext();
}
......
......@@ -108,9 +108,8 @@ public class MyDiscoveryHandler implements OCDiscoveryHandler {
activity.msg("\tResource " + light.serverUri + " hosted at endpoint(s):");
OCEndpoint ep = endpoint;
while (ep != null) {
String[] endpointStr = new String[1];
OCEndpointUtil.toString(ep, endpointStr);
activity.msg("\t\tendpoint: " + endpointStr[0]);
String endpointStr = OCEndpointUtil.toString(ep);
activity.msg("\t\tendpoint: " + endpointStr);
activity.msg("\t\t\tendpoint.device " + ep.getDevice());
activity.msg("\t\t\tendpoint.flags " + ep.getFlags());
activity.msg("\t\t\tendpoint.interfaceIndex " + ep.getInterfaceIndex());
......
......@@ -26,7 +26,7 @@ public class PostLightRequestHandler implements OCRequestHandler {
activity.msg("Post Light:");
OCRepresentation rep = request.getRequest_payload();
OCRepresentation rep = request.getRequestPayload();
while (rep != null) {
activity.msg("\tkey: " + rep.getName() + ", type: " + rep.getType());
switch (rep.getType()) {
......
......@@ -26,7 +26,7 @@ public class PostLightRequestHandler implements OCRequestHandler {
activity.msg("Post Light:");
OCRepresentation rep = request.getRequest_payload();
OCRepresentation rep = request.getRequestPayload();
while (rep != null) {
activity.msg("\tkey: " + rep.getName() + ", type: " + rep.getType());
switch (rep.getType()) {
......
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