\r
response->setResponseResult(OC_EH_OK);\r
\r
- // TODO the response should be different by the request interface.\r
response->setResourceRepresentation(\r
- RCSRepresentation::toOCRepresentation(resObj->toRepresentation()));\r
+ RCSRepresentation::toOCRepresentation(resObj->getRepresentation(m_request)));\r
\r
invokeOCFunc(OC::OCPlatform::sendResponse, response);\r
\r