Add collection payload to send a request
authorHyunJun Kim <hyunjun2.kim@samsung.com>
Tue, 8 Mar 2016 23:16:49 +0000 (08:16 +0900)
committerHabib Virji <habib.virji@samsung.com>
Thu, 10 Mar 2016 14:54:36 +0000 (14:54 +0000)
for including each resource information(attributes).

- Client side can send a message
  which each resource information is stored in one message.

Change-Id: I45a65dc66dfcec9288b858864b6c83906d341756
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5583
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/src/InProcClientWrapper.cpp

index 7134fed..2e2388a 100644 (file)
@@ -448,6 +448,11 @@ namespace OC
     {
         MessageContainer ocInfo;
         ocInfo.addRepresentation(rep);
+        for(const OCRepresentation& r : rep.getChildren())
+        {
+            ocInfo.addRepresentation(r);
+        }
+
         return reinterpret_cast<OCPayload*>(ocInfo.getPayload());
     }