[EasySetup] Fix links in baseline & ll response 29/22629/10
authorAnkur Bansal <ankur.b1@samsung.com>
Thu, 14 Sep 2017 05:35:10 +0000 (11:05 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 18 Oct 2017 08:37:13 +0000 (08:37 +0000)
commitdad17f20b03333e5155c3ee4f963a708f1c35de1
treefe304642513181ce509e75853cd38b8efb762391
parentfd5e3b74689180541570bed9cb19a6568a19a72f
[EasySetup] Fix links in baseline & ll response

Update oic.r.easysetup baseline and link list response to correctly fill
links property.
Use OCLinksPayloadArrayCreate API to create the links payload for batch
& link list interface. OCLinksPayloadArrayCreate API internally takes
care of creating the most part of payload based on the properties of the
resource. This will replace the logic of creating each property of links
payload for each of the easy setup resources from the code.
In link list interface response, add handling for both OCF & OIC
response (for backward compatibility).

Bug:https://jira.iotivity.org/browse/IOT-2711

Change-Id: I46ca2e2d635cb78e8c7fc7c5ef95d9e16327abb9
Signed-off-by: Ankur Bansal <ankur.b1@samsung.com>
(cherry picked from commit 787a73bd227c69e313145ec978ee96769fa31112)
service/easy-setup/enrollee/src/resourcehandler.c