Commit b19d0805 authored by Habib Virji's avatar Habib Virji Committed by Uze Choi

Add p in response of oic.if.ll

In collection response add p parameter. This is the response in case of default entity handler. Application has to
handle on its own adding policy parameter.

Change-Id: Ie2195eb07575fbcc34413fca729a1a7db0805314
Signed-off-by: default avatarHabib Virji <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarUze Choi <>
Tested-by: default avatarUze Choi <>
parent 33804481
......@@ -391,6 +391,12 @@ OCStackResult BuildResponseRepresentation(const OCResource *resourcePtr,
resAttrib = resAttrib->next;
OCResourceProperty p = OCGetResourceProperties((OCResourceHandle *)resourcePtr);
p = (OCResourceProperty) ((p & OC_DISCOVERABLE) | (p & OC_OBSERVABLE));
OCRepPayload *policy = OCRepPayloadCreate();
OCRepPayloadSetPropInt(policy, OC_RSRVD_BITMAP, p);
OCRepPayloadSetPropObjectAsOwner(tempPayload, OC_RSRVD_POLICY, policy);
*payload = tempPayload;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment