std::find_if(orgServiceList.begin(), orgServiceList.end(), std::bind(serviceComparision, std::placeholders::_1, currentService->getServiceType()));
if (orgIter != orgServiceList.end()) {
// already exists in orgDevice.. means it's not new!.. so remove the service from new!!
- newDevice->removeService(currentService);
+ //newDevice->removeService(currentService);
_D("Service[%d] has been already found in Device[%s]", currentService->getServiceType(), orgDevice->getName().c_str() );
} else {
_D("New Service[%d] found in Device[%s]", currentService->getServiceType(), orgDevice->getName().c_str() );
int countNewServices = mergeExcludeServices(currentDevice, discoveredDevice);
if (countNewServices == 0)
return CONV_ERROR_NONE;
+
+ deviceInfoToPublish = currentDevice;
} else {
_D("newbie!! discovered device's info [%s]", discoveredDevice->getId().c_str());
discoveredResults.insert(DiscoveredDeviceMap::value_type(discoveredDevice->getId(), discoveredDevice));
+ deviceInfoToPublish = discoveredDevice;
}
- deviceInfoToPublish = discoveredDevice;
_D("Convert device_info into Json type..");
Json deviceJson;