diff options
author | Jin Yoon <jinny.yoon@samsung.com> | 2018-11-24 03:47:48 +0900 |
---|---|---|
committer | Jin Yoon <jinny.yoon@samsung.com> | 2018-11-24 03:48:10 +0900 |
commit | bd4f3f524608fe791910a46d01df7f14d70a15aa (patch) | |
tree | f4484ed95c4ddd853386c83990ce6dcad9d3df47 /src/co2.c | |
parent | 8d033dfa4ea245d902b83c3cfb4a88d868edc265 (diff) | |
download | st-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.tar.gz st-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.tar.bz2 st-things-co2-meter-bd4f3f524608fe791910a46d01df7f14d70a15aa.zip |
Change-Id: Ibc5829bd05512fe33c9e2a8c068e78b03ea72350
Diffstat (limited to 'src/co2.c')
-rw-r--r-- | src/co2.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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; |