From 0a92950cada961ac8411a5eb7f105d11ed0611f8 Mon Sep 17 00:00:00 2001 From: hekra Date: Tue, 8 Mar 2016 06:26:03 -0800 Subject: [PATCH] IOT-970: Handle get requests on oic/p and oic/d resources Change-Id: I6a96e188f7dcb839467c4285c3b4a57871669b78 Signed-off-by: Hugues Ekra Reviewed-on: https://gerrit.iotivity.org/gerrit/5553 Tested-by: jenkins-iotivity Reviewed-by: Phil Coval Reviewed-by: Habib Virji (cherry picked from commit a51b71c150d30614439dbbe1c3ec0ae01bdefaeb) Reviewed-on: https://gerrit.iotivity.org/gerrit/7843 --- resource/csdk/stack/src/ocstack.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c index ea37b41..c0219d0 100644 --- a/resource/csdk/stack/src/ocstack.c +++ b/resource/csdk/stack/src/ocstack.c @@ -1199,6 +1199,14 @@ void OCHandleResponse(const CAEndpoint_t* endPoint, const CAResponseInfo_t* resp { type = PAYLOAD_TYPE_RD; } + else if (strcmp(OC_RSRVD_PLATFORM_URI, cbNode->requestUri) == 0) + { + type = PAYLOAD_TYPE_PLATFORM; + } + else if (strcmp(OC_RSRVD_DEVICE_URI, cbNode->requestUri) == 0) + { + type = PAYLOAD_TYPE_DEVICE; + } if (type == PAYLOAD_TYPE_INVALID) { OIC_LOG_V(INFO, TAG, "Assuming PAYLOAD_TYPE_REPRESENTATION: %d %s", -- 2.7.4