for (unsigned int i = 0; i < collectionResourceTypes.size(); ++i)
{
- std::string query = OC_MULTICAST_DISCOVERY_URI;
+ std::string query = OC_RSRVD_WELL_KNOWN_URI;
query.append("?rt=");
query.append(collectionResourceTypes.at(i));
OCPlatform::findResource("", query,
- OC_ALL,
+ CT_DEFAULT,
std::bind(&GroupSynchronization::onFindGroup, this,
std::placeholders::_1));
}
OCResource::Ptr groupSyncResource =
OCPlatform::constructResourceObject(host, uri,
- OC_ALL, false,
+ CT_DEFAULT, false,
resourceTypes, resourceInterface);
// OCResource::Ptr groupSyncResource = OCPlatform::constructResourceObject(host, uri,
OCResource::Ptr groupSyncResource;
groupSyncResource = OCPlatform::constructResourceObject(host, uri,
- OC_ALL, false,
+ CT_DEFAULT, false,
resourceTypes, resourceInterface);
// groupSyncResource = OCPlatform::constructResourceObject(host, uri,
// OC_WIFI, false, resourceTypes, resourceInterface);
if (methodType == "joinGroup")
{
- std::string resourceName = OC_MULTICAST_DISCOVERY_URI;
+ std::string resourceName = OC_RSRVD_WELL_KNOWN_URI;
resourceName.append("?rt=");
resourceName.append(resourceType);
OC_LOG_V(DEBUG, TAG, "\t\t\tresourceName : %s", resourceName.c_str());
resourceRequest = request;
OCPlatform::findResource("", resourceName,
- OC_ALL,
+ CT_DEFAULT,
std::bind(&GroupSynchronization::onFindResource, this,
std::placeholders::_1));