[Easy Setup] Adding logs for OTM failure reason 29/22429/6
authorAbhishek Pandey <abhi.siso@samsung.com>
Tue, 12 Sep 2017 07:10:32 +0000 (12:40 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 15 Sep 2017 06:18:41 +0000 (06:18 +0000)
commit2f58c121ac4a0b6ace4e5c42b6b8aa85c9f52b85
treeb9abff0174bca2787a47166f12b5e43d6a989a69
parentddd461f1ec4296ec4b0d5f18f4bd19bbb614ad88
[Easy Setup] Adding logs for OTM failure reason

IOT-2703: https://jira.iotivity.org/browse/IOT-2703
[Easy Setup] Adding Ownership transfer failure reason logs

- Mapped failure due to Timeout to ESResult::ES_COMMUNICATION_ERROR.
- Added error logs for developers to know failure reason.
- Optimized for loop with a break when matching resource is found.

Signed-off-by: Abhishek Pandey <abhi.siso@samsung.com>
Change-Id: I0e1e0fce5834acc625347198497a9e420b54909c
service/easy-setup/mediator/richsdk/src/EnrolleeSecurity.cpp