projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git]
/
service
/
resource-container
/
examples
/
ContainerSampleClient.cpp
diff --git
a/service/resource-container/examples/ContainerSampleClient.cpp
b/service/resource-container/examples/ContainerSampleClient.cpp
index
3a8bf4e
..
60993a8
100644
(file)
--- a/
service/resource-container/examples/ContainerSampleClient.cpp
+++ b/
service/resource-container/examples/ContainerSampleClient.cpp
@@
-180,9
+180,13
@@
void onPost2(const HeaderOptions &headerOptions, const OCRepresentation &rep, co
}
if (OBSERVE_TYPE_TO_USE == ObserveType::Observe)
}
if (OBSERVE_TYPE_TO_USE == ObserveType::Observe)
+ {
std::cout << std::endl << "Observe is used." << std::endl << std::endl;
std::cout << std::endl << "Observe is used." << std::endl << std::endl;
+ }
else if (OBSERVE_TYPE_TO_USE == ObserveType::ObserveAll)
else if (OBSERVE_TYPE_TO_USE == ObserveType::ObserveAll)
+ {
std::cout << std::endl << "ObserveAll is used." << std::endl << std::endl;
std::cout << std::endl << "ObserveAll is used." << std::endl << std::endl;
+ }
curResource->observe(OBSERVE_TYPE_TO_USE, QueryParamsMap(), &onObserve);
curResource->observe(OBSERVE_TYPE_TO_USE, QueryParamsMap(), &onObserve);
@@
-713,9
+717,9
@@
int main(int argc, char *argv[])
cv.wait(lock);
}
cv.wait(lock);
}
- catch (OCException &e)
+ catch (
const
OCException &e)
{
{
-
oclog()
<< "Exception in main: " << e.what();
+
std::cout
<< "Exception in main: " << e.what();
}
return 0;
}
return 0;