if (n == 9)
{
- std::string query = OC_WELL_KNOWN_QUERY;
+ std::string query = OC_MULTICAST_DISCOVERY_URI;
query.append("?rt=");
query.append(resourceTypeName);
}
else if (n == 0)
{
- std::string query = OC_WELL_KNOWN_QUERY;
+ std::string query = OC_MULTICAST_DISCOVERY_URI;
query.append("?rt=");
query.append("core.bookmark");
else if (selectedMenu == 11)
{
ostringstream query;
- query << OC_WELL_KNOWN_QUERY << "?rt=core.musicplayer";
+ query << OC_MULTICAST_DISCOVERY_URI << "?rt=core.musicplayer";
cout << query.str() << endl;
result = OCPlatform::findResource("",
else if (selectedMenu == 12)
{
ostringstream query;
- query << OC_WELL_KNOWN_QUERY << "?rt=core.speaker";
+ query << OC_MULTICAST_DISCOVERY_URI << "?rt=core.speaker";
result = OCPlatform::findResource("",
query.str(),
OC_ALL,
{
// std::cout << "resourceTypes : " << resourceTypes.at(i) << std::endl;
- std::string query = OC_WELL_KNOWN_QUERY;
+ std::string query = OC_MULTICAST_DISCOVERY_URI;
query.append("?rt=");
query.append(resourceTypes.at(i));
for (unsigned int i = 0; i < collectionResourceTypes.size(); ++i)
{
- std::string query = OC_WELL_KNOWN_QUERY;
+ std::string query = OC_MULTICAST_DISCOVERY_URI;
query.append("?rt=");
query.append(collectionResourceTypes.at(i));
if (methodType == "joinGroup")
{
- std::string resourceName = OC_WELL_KNOWN_QUERY;
+ std::string resourceName = OC_MULTICAST_DISCOVERY_URI;
resourceName.append("?rt=");
resourceName.append(resourceType);
OC_LOG_V(DEBUG, TAG, "\t\t\tresourceName : %s", resourceName.c_str());