Add collection payload to send a request
authorHyunJun Kim <hyunjun2.kim@samsung.com>
Tue, 8 Mar 2016 23:16:49 +0000 (08:16 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 11 Apr 2016 13:08:50 +0000 (13:08 +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>
(cherry picked from commit 8d222b6e6aa9c73a12e07d23385b23cc22b8debd)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7705
Reviewed-by: Uze Choi <uzchoi@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());
     }