[Bug2615] Remove di from GET /oic/rd 81/21981/2
authorHabib Virji <habib.virji@samsung.com>
Thu, 17 Aug 2017 18:49:01 +0000 (19:49 +0100)
committerZiran Sun <ziran.sun@samsung.com>
Mon, 4 Sep 2017 09:10:58 +0000 (09:10 +0000)
di property to remove GET /oic/rd

Change-Id: I659fe1fbff8c38e453bdf98605d8765c1fffaf00
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21981
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/resource-directory/src/rd_server.c

index 06f2419..c8ecf29 100644 (file)
@@ -81,17 +81,9 @@ static OCEntityHandlerResult handleGetRequest(const OCEntityHandlerRequest *ehRe
         return OC_STACK_NO_MEMORY;
     }
 
-    const char *id = OCGetServerInstanceIDString();
-    if (id)
-    {
-        OCRepPayloadSetPropString(rdPayload, OC_RSRVD_DEVICE_ID, id);
-    }
     OCRepPayloadSetPropInt(rdPayload, OC_RSRVD_RD_DISCOVERY_SEL, OC_RD_DISC_SEL);
-
     OCRepPayloadAddResourceType(rdPayload, OC_RSRVD_RESOURCE_TYPE_RD);
-
     OCRepPayloadAddInterface(rdPayload, OC_RSRVD_INTERFACE_DEFAULT);
-
     OIC_LOG_PAYLOAD(DEBUG, (OCPayload *) rdPayload);
 
     if (OC_STACK_OK != sendResponse(ehRequest, rdPayload, OC_EH_OK))