Change-Id: I9bda5869143646de5ddf0e4cbd72f819d9a31933
#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"
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;
#include "webutil.h"
-#define CONNECTIVITY_KEY "opened"
/**
* DO NOT EDIT: please don't edit the time interval.
*/
/**
* 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.