#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)
#include "connectivity.h"
#include "controller.h"
-#define CONNECTIVITY_KEY "opened"
-
typedef struct app_data_s {
Ecore_Timer *getter_timer;
connectivity_resource_s *resource_info;
* 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");
*/
* 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.
<?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>