Change the property of topic resource
authorch79.cho <ch79.cho@samsung.com>
Thu, 6 Oct 2016 06:21:14 +0000 (15:21 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 6 Oct 2016 11:50:50 +0000 (11:50 +0000)
The resource property of topic is changed from DISCOVERABLE to NONE.

Change-Id: I670dbd26725171b7639061062bdb412e0ace7a81
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12865
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/provider/NSProviderResource.c

index 098035f..83eaba4 100644 (file)
@@ -199,11 +199,11 @@ NSResult NSCreateResource(char *uri)
         if(NSGetResourceSecurity())
         {
             NS_LOG(DEBUG, "Create secured resource");
-            resourceProperties = OC_DISCOVERABLE | OC_SECURE;
+            resourceProperties = OC_RES_PROP_NONE | OC_SECURE;
         }
         else
         {
-            resourceProperties = OC_DISCOVERABLE;
+            resourceProperties = OC_RES_PROP_NONE;
         }
 
         if (OCCreateResource(&(NotificationTopicResource.handle), NS_COLLECTION_TOPIC_TYPE,