Change package name: org.example.position-finder-server -> org.tizen.position-finder... 49/146649/1
authorGeunsun, Lee <gs86.lee@samsung.com>
Wed, 30 Aug 2017 02:27:45 +0000 (11:27 +0900)
committerGeunsun, Lee <gs86.lee@samsung.com>
Wed, 30 Aug 2017 02:27:45 +0000 (11:27 +0900)
Change-Id: I5ad34685279aeed976c1b720eb6db4682ed93228

inc/log.h
src/controller.c
tizen-manifest.xml

index e0624e6..27579b5 100644 (file)
--- a/inc/log.h
+++ b/inc/log.h
@@ -27,7 +27,7 @@
 #ifdef  LOG_TAG
 #undef  LOG_TAG
 #endif
-#define LOG_TAG "POSITION_FINDER_SERVER"
+#define LOG_TAG "TT"
 
 #if !defined(_D)
 #define _D(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "[%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
index a498ee4..fb10404 100644 (file)
@@ -30,8 +30,6 @@
 #include "connectivity.h"
 #include "controller.h"
 
-#define CONNECTIVITY_KEY "opened"
-
 typedef struct app_data_s {
        Ecore_Timer *getter_timer;
        connectivity_resource_s *resource_info;
@@ -46,15 +44,18 @@ static Eina_Bool control_sensors_cb(void *data)
         * Infrared motion sensor outputs 1 if motion is detected, or 0 if motion is not detected.
         */
        /*
-       if (resource_read_infrared_motion_sensor(Pin Number, &value) == -1)
+       if (resource_read_infrared_motion_sensor(PIN_NUMBER, &value) == -1)
                _E("Failed to get DATA from Infrared Motion value");
+
+       _D("Sensor Value: %d", value);
        */
 
+
        /**
         * Notifies specific clients that resource's attributes have changed.
         */
        /*
-       if (connectivity_notify_bool(ad->resource_info, KEY, VALUE) == -1)
+       if (connectivity_notify_bool(ad->resource_info, "opened", value) == -1)
                _E("Cannot notify message");
        */
 
@@ -70,7 +71,7 @@ static bool service_app_create(void *data)
         * No modification required!!!
         * Access only when modifying internal functions.
         */
-       //controller_init_internal_functions();
+       controller_init_internal_functions();
 
        /**
         * Create a connectivity resource and registers the resource in server.
index 964eb10..83a5923 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.example.position-finder-server" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.tizen.position-finder-server" version="1.0.0">
     <profile name="wearable"/>
-    <service-application appid="org.example.position-finder-server" exec="position-finder-server" multiple="false" nodisplay="true" taskmanage="false" type="capp">
+    <service-application appid="org.tizen.position-finder-server" exec="position-finder-server" multiple="false" nodisplay="true" taskmanage="false" type="capp">
         <label>position-finder-server</label>
         <icon>default_icon.png</icon>
     </service-application>