summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJin Yoon <jinny.yoon@samsung.com>2017-07-19 13:56:19 +0900
committerGeunSun Lee <gs86.lee@samsung.com>2017-07-19 06:39:34 +0000
commit1e606b03bc8592c827a9d7895ae76096173ce3e8 (patch)
tree355ff2f9f8f4ef9ff19cec3093784ddbb371ef71 /src
parentdf6cdcbb1cb277195ec058153989d77cfbc28bef (diff)
downloadrcc-1e606b03bc8592c827a9d7895ae76096173ce3e8.tar.gz
rcc-1e606b03bc8592c827a9d7895ae76096173ce3e8.tar.bz2
rcc-1e606b03bc8592c827a9d7895ae76096173ce3e8.zip
Device name is set only by a internal function
Change-Id: I2a28a5461a4a53bd0e64bebad1dfc13dbf8a3748
Diffstat (limited to 'src')
-rw-r--r--src/connectivity.c5
-rw-r--r--src/controller.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/connectivity.c b/src/connectivity.c
index 7522fb7..50f651f 100644
--- a/src/connectivity.c
+++ b/src/connectivity.c
@@ -370,15 +370,14 @@ error:
_send_response(request, NULL, IOTCON_RESPONSE_ERROR);
}
-/* device_name : "iotcon-test-basic-server" */
-int connectivity_init(const char *device_name)
+int connectivity_init(void)
{
int ret = -1;
ret = iotcon_initialize("/home/owner/apps_rw/org.tizen.position-finder-server/data/iotcon-test-svr-db-server.dat");
retv_if(IOTCON_ERROR_NONE != ret, -1);
- ret = iotcon_set_device_name(device_name);
+ ret = iotcon_set_device_name(ULTRASONIC_RESOURCE_TYPE);
goto_if(IOTCON_ERROR_NONE != ret, error);
ret = iotcon_start_presence(10);
diff --git a/src/controller.c b/src/controller.c
index f27dc55..2b2754c 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -209,7 +209,7 @@ int main(int argc, char* argv[])
/* Do not modify codes under this comment */
static void _start_internal_function(void)
{
- connectivity_init("iotcon-test-basic-server");
+ connectivity_init();
}
static void _stop_internal_function(void)