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 7134fed607c908b4355a6c1f41db3d32a72fb4b0..2e2388aff82786b8db04f4a6388b091e603c8939 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());
     }