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>
{
MessageContainer ocInfo;
ocInfo.addRepresentation(rep);
+ for(const OCRepresentation& r : rep.getChildren())
+ {
+ ocInfo.addRepresentation(r);
+ }
+
return reinterpret_cast<OCPayload*>(ocInfo.getPayload());
}