projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.9.1
[platform/upstream/iotivity.git]
/
service
/
things-manager
/
sampleapp
/
linux
/
groupsyncaction
/
speaker.cpp
diff --git
a/service/things-manager/sampleapp/linux/groupsyncaction/speaker.cpp
b/service/things-manager/sampleapp/linux/groupsyncaction/speaker.cpp
index
41abb36
..
4e90f3f
100644
(file)
--- a/
service/things-manager/sampleapp/linux/groupsyncaction/speaker.cpp
+++ b/
service/things-manager/sampleapp/linux/groupsyncaction/speaker.cpp
@@
-38,13
+38,7
@@
OCEntityHandlerResult speakerEntityHandler(const std::shared_ptr< OCResourceRequ
int requestFlag = request->getRequestHandlerFlag();
std::string action;
int requestFlag = request->getRequestHandlerFlag();
std::string action;
- if (requestFlag == RequestHandlerFlag::InitFlag)
- {
- cout << "\trequestFlag : Init\n";
-
- // entity handler to perform resource initialization operations
- }
- else if (requestFlag == RequestHandlerFlag::RequestFlag)
+ if (requestFlag == RequestHandlerFlag::RequestFlag)
{
cout << "\trequestFlag : Request\n";
{
cout << "\trequestFlag : Request\n";
@@
-157,7
+151,7
@@
int main(int argc, char* argv[])
}
catch (OCException& e)
{
}
catch (OCException& e)
{
-
//log(e.what())
;
+
std::cout << "Exception: " << e.what() << std::endl
;
}
return 0;
}
return 0;