Issue fix and verification of Tizen PPM Sample App after CA Integration
authorkrishna.kb <krishna.kb@samsung.com>
Mon, 27 Apr 2015 12:14:03 +0000 (17:44 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Tue, 28 Apr 2015 00:11:30 +0000 (00:11 +0000)
Change-Id: I3a13be7425e5cd7d4b9dd9c2e381ece23142d778
Signed-off-by: krishna.kb <krishna.kb@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/840
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Tested-by: Madan Lanka <lanka.madan@samsung.com>
service/protocol-plugin/sample-app/tizen/PPMSampleApp/src/ppmsampleapp.cpp

index 5d1e633..1d3c21c 100644 (file)
@@ -541,8 +541,9 @@ send_msg_clicked_cb(void *data , Evas_Object *obj , void *event_info)
             std::cout << "Before find Resource... " << std::endl;
 
             // Find fan resources
-            OCPlatform::findResource("", "coap://224.0.1.187/oc/core?rt=core.fan", OC_WIFI,
-                                     &foundResourceFan);
+            std::ostringstream requestURI;
+            requestURI << OC_WELL_KNOWN_QUERY << "?rt=core.fan";
+            OCPlatform::findResource("", requestURI.str(), OC_WIFI, &foundResourceFan);
             std::cout << "Finding Resource... " << std::endl;
         }
         catch (OCException &e)