Remove statements for challenges 75/157275/1
authorJin Yoon <jinny.yoon@samsung.com>
Tue, 24 Oct 2017 04:22:00 +0000 (13:22 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Tue, 24 Oct 2017 04:22:00 +0000 (13:22 +0900)
Change-Id: I9bda5869143646de5ddf0e4cbd72f819d9a31933

src/connectivity.c
src/controller.c

index 94e4845..c5585b9 100644 (file)
@@ -29,7 +29,7 @@
 #include "log.h"
 #include "connectivity.h"
 
-#define ULTRASONIC_RESOURCE_TYPE "org.tizen.door"
+#define DEVICE_NAME "org.tizen.device"
 #define BUFSIZE 1024
 #define URI_PATH_LEN 64
 #define URI_PATH "/door/1"
@@ -444,7 +444,7 @@ int connectivity_init(void)
        ret = iotcon_initialize(data);
        retv_if(IOTCON_ERROR_NONE != ret, -1);
 
-       ret = iotcon_set_device_name(ULTRASONIC_RESOURCE_TYPE);
+       ret = iotcon_set_device_name(DEVICE_NAME);
        goto_if(IOTCON_ERROR_NONE != ret, error);
 
        return 0;
index 6cbc13e..086f873 100644 (file)
@@ -33,7 +33,6 @@
 #include "webutil.h"
 
 
-#define CONNECTIVITY_KEY "opened"
 /**
  * DO NOT EDIT: please don't edit the time interval.
  */
@@ -105,8 +104,10 @@ static bool service_app_create(void *data)
        /**
         * Creates a connectivity resource and registers the resource in server.
         */
-       ret = connectivity_set_resource(/*PATH*/, "org.tizen.door", &ad->resource_info);
-       if (ret == -1) _E("Cannot broadcast resource");
+
+
+
+
 
        /**
         * Creates a timer to call the given function in the given period of time.