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>
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)