Only multicast case, set to Low of QoS.
authorJaehong Jo <jaehong.jo@samsung.com>
Fri, 23 Sep 2016 06:04:24 +0000 (15:04 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 26 Sep 2016 05:09:26 +0000 (05:09 +0000)
Application can set QoS in unicast case.

Change-Id: I14658d90bf36a76e6f9beccc470edb9f75d75859
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12165
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/ocstack.c

index a2082bf..950def9 100644 (file)
@@ -2740,7 +2740,6 @@ OCStackResult OCDoResource(OCDoHandle *handle,
         requestInfo.method = CA_DELETE;
         break;
     case OC_REST_DISCOVER:
-        qos = OC_LOW_QOS;
 #ifdef WITH_PRESENCE
     case OC_REST_PRESENCE:
 #endif
@@ -2754,6 +2753,7 @@ OCStackResult OCDoResource(OCDoHandle *handle,
             tmpDevAddr.flags = flags;
             destination = &tmpDevAddr;
             requestInfo.isMulticast = true;
+            qos = OC_LOW_QOS;
         }
         // OC_REST_DISCOVER: CA_DISCOVER will become GET and isMulticast.
         // OC_REST_PRESENCE: Since "presence" is a stack layer only implementation.