diff options
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; |