Change-Id: Iecc5e33251f78d2b5c611e6935c35ba9a007846a
Signed-off-by: kmook <kmook.choi@samsung.com>
_D("update discovered device's info [%s]", discoveredDevice->getId().c_str());
IDevice* currentDevice = iterDiscovered->second;
+ if (currentDevice->getAddress().empty() && !discoveredDevice->getAddress().empty())
+ currentDevice->setAddress(discoveredDevice->getAddress());
+
int countNewServices = mergeExcludeServices(currentDevice, discoveredDevice);
if (countNewServices == 0)
return CONV_ERROR_NONE;
virtual string getName() = 0;
virtual string getId() = 0;
virtual string getAddress() = 0;
+ virtual int setAddress(std::string host_address) = 0;
};
}
}
return CONV_ERROR_NONE;
}
+
+int conv::DeviceAdapter::setAddress(string id)
+{
+ m_resource_h.setHostAddress(id);
+ return CONV_ERROR_NONE;
+}
string getName();
string getId();
string getAddress();
+ int setAddress(std::string host_address);
private :
ResourceHandle m_resource_h;