Fix to use OC_IPV4 instead of OC_ALL in Things Manager
authorJihun Ha <jihun.ha@samsung.com>
Thu, 21 May 2015 04:06:03 +0000 (13:06 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 21 May 2015 05:56:47 +0000 (05:56 +0000)
When constructResourceObject function is used, OC_ALL parameter is not
working well. Instead of this, OC_IPv4 parameter can be used.

Change-Id: I5652551b844dd3d4a15af0392c170535db68dd8b
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1059
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/things-manager/sdk/src/ThingsConfiguration.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 43c6895..4ea8804
@@ -326,7 +326,7 @@ namespace OIC
 
             std::string host = getHostFromURI(oit->getUri());
 
-            tempResource = OCPlatform::constructResourceObject(host, uri, OC_ALL, true,
+            tempResource = OCPlatform::constructResourceObject(host, uri, OC_IPV4, true,
                     oit->getResourceTypes(), m_if);
 
             p_resources.push_back(tempResource);