summaryrefslogtreecommitdiff
path: root/src/co2.c
diff options
context:
space:
mode:
authorJin Yoon <jinny.yoon@samsung.com>2018-11-24 03:47:48 +0900
committerJin Yoon <jinny.yoon@samsung.com>2018-11-24 03:48:10 +0900
commitbd4f3f524608fe791910a46d01df7f14d70a15aa (patch)
treef4484ed95c4ddd853386c83990ce6dcad9d3df47 /src/co2.c
parent8d033dfa4ea245d902b83c3cfb4a88d868edc265 (diff)
downloadst-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.tar.gz
st-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.tar.bz2
st-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.zip
Update SmartThings APIs for Tizen 5.0spiadc
Change-Id: Ibc5829bd05512fe33c9e2a8c068e78b03ea72350
Diffstat (limited to 'src/co2.c')
-rw-r--r--src/co2.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/co2.c b/src/co2.c
index 8ade1e2..312e11a 100644
--- a/src/co2.c
+++ b/src/co2.c
@@ -30,7 +30,7 @@
#define SENSOR_GATHER_INTERVAL (50) //50ms
#define SENSOR_GATHER_COUNT (60)
-//#define USE_ST_SDK
+#define USE_ST_SDK
#ifdef USE_ST_SDK
@@ -167,13 +167,12 @@ _request_cb(smartthings_resource_h handle, int req_id,
}
static void
-_resource_connection_status_cb(smartthings_resource_error_e error,
- smartthings_resource_h handle,
+_resource_connection_status_cb(smartthings_resource_h handle,
smartthings_resource_connection_status_e status, void *user_data)
{
app_data *ad = user_data;
- _D("result [%s], status=[%d]", __resource_error_to_str(error), status);
+ _D("status=[%d]", status);
ret_if(!ad);
@@ -372,11 +371,10 @@ _thing_status_cb(
}
static void
-_things_connection_status_cb(smartthings_error_e error,
- smartthings_h handle, smartthings_connection_status_e status,
+_things_connection_status_cb(smartthings_h handle, smartthings_connection_status_e status,
void *user_data)
{
- _D("result [%s], status = [%d]", __master_error_to_str(error), status);
+ _D("status = [%d]", status);
if (status == SMARTTHINGS_CONNECTION_STATUS_CONNECTED) {
int err = 0;