Commit 3c1debe2 authored by Larry Sachs's avatar Larry Sachs

Add Cancel Observe logging & Fix misc. logging

Change-Id: I8e9633521459d08208847df3c9badf869948675f
Signed-off-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
parent a1327fad
Pipeline #39 failed with stages
in 17 seconds
......@@ -814,9 +814,10 @@ public class IotivityClient implements
for (OcResource ocResource : mIotivityResourceLookup.values()) {
if (ocResource.getUri().contains(Light.OIC_URI_PREFIX_LIGHT)) {
try {
AlexaIotivityBridgeDemo.msg("Cancelling Observe for " + ocResource.getUri());
ocResource.cancelObserve();
} catch (OcException e) {
IotivityScanner.msgError("Error occurred while invoking \"cancelObserve\" API for resource "
AlexaIotivityBridgeDemo.msgError("Error occurred while invoking \"cancelObserve\" API for resource "
+ ocResource.getUri() + " -- " + e.toString());
}
}
......
......@@ -566,7 +566,7 @@ public class IotivityScannerClient implements
lightRepresentation = light.getOcRepresentation();
} catch (OcException e) {
AlexaIotivityBridgeDemo.msgError("Failed to get OcRepresentation from light -- " + e.toString());
IotivityScanner.msgError("Failed to get OcRepresentation from light -- " + e.toString());
}
if (lightRepresentation != null) {
......@@ -576,7 +576,7 @@ public class IotivityScannerClient implements
ocResource.put(lightRepresentation, queryParams, this);
} catch (OcException e) {
AlexaIotivityBridgeDemo.msgError("Error occurred while invoking \"put\" API -- " + e.toString());
IotivityScanner.msgError("Error occurred while invoking \"put\" API -- " + e.toString());
}
}
}
......@@ -742,6 +742,7 @@ public class IotivityScannerClient implements
for (OcResource ocResource : mIotivityResourceLookup.values()) {
if (ocResource.getUri().contains(Light.OIC_URI_PREFIX_LIGHT)) {
try {
IotivityScanner.msg("Cancelling Observe for " + ocResource.getUri());
ocResource.cancelObserve();
} catch (OcException e) {
IotivityScanner.msgError("Error occurred while invoking \"cancelObserve\" API for resource "
......
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