summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Sachs <larry.j.sachs@intel.com>2018-01-16 19:36:09 -0800
committerLarry Sachs <larry.j.sachs@intel.com>2018-01-16 19:36:09 -0800
commit3c1debe24eb650922d71ed5bc6f1db26a264b4df (patch)
treec196e6d0b17b6ce075621e77aa3866c8857a40f7
parenta1327fad1c4a53fb2db83817a1466e0f12360243 (diff)
Add Cancel Observe logging & Fix misc. loggingHEADmaster
Change-Id: I8e9633521459d08208847df3c9badf869948675f Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
-rw-r--r--alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityClient.java3
-rw-r--r--alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityScannerClient.java5
2 files changed, 5 insertions, 3 deletions
diff --git a/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityClient.java b/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityClient.java
index 3f8f111..18e4a14 100644
--- a/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityClient.java
+++ b/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityClient.java
@@ -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());
}
}
diff --git a/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityScannerClient.java b/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityScannerClient.java
index 61de2e6..5b081fc 100644
--- a/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityScannerClient.java
+++ b/alexa-iotivity-bridge-demo/src/main/java/org/iotivity/base/examples/IotivityScannerClient.java
@@ -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 "