[IOT-2560] ProvClient return -1 on timeout
authorAlex Kelley <alexke@microsoft.com>
Thu, 3 Aug 2017 00:11:25 +0000 (17:11 -0700)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Wed, 9 Aug 2017 16:34:24 +0000 (16:34 +0000)
commitd467bd6769c24b5333250937b30a5b055c38c788
tree81e6d875eee3b925a049a453972437d29deb14bf
parentb279ee78507f1e0f7ed9266a90d64d69d43e67a8
[IOT-2560] ProvClient return -1 on timeout

This change updates ProvisioningClient's waitCallbackRet to return -1 if it
times out waiting for a callback to indicate the operation has finished.

Change-Id: I904e41fa7fc5fbed73344b08c30c45235678b646
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21741
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
resource/csdk/security/provisioning/sample/provisioningclient.c