Notify a value typed double
authorJin Yoon <jinny.yoon@samsung.com>
Tue, 24 Oct 2017 04:10:47 +0000 (13:10 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Tue, 24 Oct 2017 04:10:47 +0000 (13:10 +0900)
Change-Id: I606444d55c60b8cbb611b9b1cf17456425fb1fb9

src/controller.c

index 449c2ea7a0d6bdce015ef87603a6c790ee66f982..18f3155ee2c9ac25f9824cb64328c2784925150d 100644 (file)
@@ -37,7 +37,7 @@ typedef struct app_data_s {
 
 static Eina_Bool control_sensors_cb(void *data)
 {
-       int value = 0;
+       double value = 0.0f;
        app_data *ad = data;
 
        /**
@@ -55,7 +55,7 @@ static Eina_Bool control_sensors_cb(void *data)
         * Notifies specific clients that resource's attributes have changed.
         */
        /*
-       if (connectivity_notify_bool(ad->resource_info, "opened", value) == -1)
+       if (connectivity_notify_double(ad->resource_info, "distance", value) == -1)
                _E("Cannot notify message");
        */