summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoungman <yman.jung@samsung.com>2016-08-11 14:29:48 +0900
committerYoungjae Shin <yj99.shin@samsung.com>2016-08-11 00:36:52 -0700
commit8374d297ecd6c197374663276daa87ef11c39300 (patch)
tree2660753fa2b7f493cebff3e56b7373f1d571be33
parentb4305baeabedbc60f02489412830e6dfffe72e82 (diff)
downloadiotcon-8374d297ecd6c197374663276daa87ef11c39300.tar.gz
iotcon-8374d297ecd6c197374663276daa87ef11c39300.tar.bz2
iotcon-8374d297ecd6c197374663276daa87ef11c39300.zip
Change-Id: Ice3f5bfe202ae77940536e4fc83f1a38f79fa945 Signed-off-by: youngman <yman.jung@samsung.com>
-rw-r--r--src/ic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ic.c b/src/ic.c
index 89b3bd4..599e4a6 100644
--- a/src/ic.c
+++ b/src/ic.c
@@ -23,6 +23,8 @@
#define ICL_TIMEOUT_DEFAULT 30 /* 30 sec */
#define ICL_TIMEOUT_MAX 60*60 /* 60 min */
+#define ICL_DEFAULT_DEVICE_NAME "UNKNOWN"
+
static pthread_t icl_thread;
static int icl_timeout_seconds = ICL_TIMEOUT_DEFAULT;
static int icl_init_count;
@@ -62,6 +64,14 @@ int icl_initialize(const char *file_path, bool is_pt)
ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT);
return ret;
}
+
+ ret = icl_ioty_set_device_info(ICL_DEFAULT_DEVICE_NAME);
+ if (IOTCON_ERROR_NONE != ret) {
+ ERR("icl_ioty_set_device_info() Fail(%d)", ret);
+ icl_ioty_deinit(icl_thread);
+ ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT);
+ return ret;
+ }
}
icl_init_count++;
ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT);