X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fexamples%2Froomclient.cpp;h=2765dfea5b795f24b7eeef3cd44c581ce67b27f7;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=fdba60dd9b1b1dfa47daf618129fb6666bd8fffd;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/examples/roomclient.cpp b/resource/examples/roomclient.cpp index fdba60d..2765dfe 100644 --- a/resource/examples/roomclient.cpp +++ b/resource/examples/roomclient.cpp @@ -41,6 +41,12 @@ int observe_count() return ++oc; } +static void printUsage() +{ + std::cout << "Usage roomclient <0|1>" << std::endl; + std::cout<<"connectivityType: Default" << std::endl; + std::cout << "connectivityType 0: IP" << std::endl; +} // Forward declaration void putRoomRepresentation(std::shared_ptr resource); void onPut(const HeaderOptions& headerOptions, const OCRepresentation& rep, const int eCode); @@ -215,7 +221,6 @@ void foundResource(std::shared_ptr resource) } catch(std::exception& e) { - std::cerr << "Exception in foundResource: "<< e.what() <