int fn_iot_initialize()
{
int ret = iotcon_initialize(SVR_PATH);
- LOG_DEBUG("iotcon_initialize : %s", get_error_message(ret));
+ if (IOTCON_ERROR_NONE != ret) {
+ LOG_ERR("iotcon_initialize: Failed %s", get_error_message(ret));
+ return false;
+ }
+ LOG_DEBUG("iotcon_initialize : %s", get_error_message(ret));
ret = iotcon_find_device_info(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_ALL,
NULL, _request_device_info, NULL);
+ if (IOTCON_ERROR_NONE != ret) {
+ LOG_ERR("iotcon_find_device_info: Failed %s", get_error_message(ret));
+ return false;
+ }
+
/*
"operation" resource
The operation resource is a control command channel between daemon and daemon.