diff options
author | Geunsun, Lee <gs86.lee@samsung.com> | 2017-08-30 11:27:45 +0900 |
---|---|---|
committer | Geunsun, Lee <gs86.lee@samsung.com> | 2017-08-30 11:27:45 +0900 |
commit | 181d11548666aacf90fd1aa229979ee80103b5c4 (patch) | |
tree | a3b2c4bc4e342d23868cd803173a6818f81d8a4a | |
parent | 1bdef3aaf0d4debc643e765f6a48fb201015923a (diff) | |
download | position-finder-server-181d11548666aacf90fd1aa229979ee80103b5c4.tar.gz position-finder-server-181d11548666aacf90fd1aa229979ee80103b5c4.tar.bz2 position-finder-server-181d11548666aacf90fd1aa229979ee80103b5c4.zip |
Change package name: org.example.position-finder-server -> org.tizen.position-finder-server
Change-Id: I5ad34685279aeed976c1b720eb6db4682ed93228
-rw-r--r-- | inc/log.h | 2 | ||||
-rw-r--r-- | src/controller.c | 11 | ||||
-rw-r--r-- | tizen-manifest.xml | 4 |
3 files changed, 9 insertions, 8 deletions
@@ -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) diff --git a/src/controller.c b/src/controller.c index a498ee4..fb10404 100644 --- a/src/controller.c +++ b/src/controller.c @@ -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. diff --git a/tizen-manifest.xml b/tizen-manifest.xml index 964eb10..83a5923 100644 --- a/tizen-manifest.xml +++ b/tizen-manifest.xml @@ -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> |