Commit 0b28ea64 authored by Habib Virji's avatar Habib Virji Committed by Phil Coval

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 <>
(cherry picked from commit b19d0805)
Reviewed-on: default avatarPhil Coval <>
parent 9705d8cb
......@@ -387,6 +387,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