[easysetup] Bug fix, code cleanup and function name changes for better readability
- Provisioning status 0 was considered for checking success. Now changed to 2.
- PUT is retained based on the spec.
PUT request is appropriate for provisioning information to the enrollee.
When an enrollee receives the put request, the entire resource information should be overwritten.
Change-Id: Ib001c19c8a8ed74a967251c1be4219fd9cc70cdf
Signed-off-by: lankamadan <lanka.madan@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4527
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>