};
typedef struct _resource_s resource_s;
-typedef void (*resource_read_cb)(float value, void *data);
+typedef void (*resource_read_cb)(double value, void *data);
struct _resource_read_cb_s {
resource_read_cb cb;
connectivity_resource_s *resource_info;
} app_data;
-static void _ultrasonic_sensor_read_cb(float value, void *data)
+static void _ultrasonic_sensor_read_cb(double value, void *data)
{
app_data *ad = data;
static bool service_app_create(void *data)
{
app_data *ad = data;
- const char *path = NULL;
/**
* DO NOT EDIT: please don't edit the function below.
controller_init_internal_functions();
/**
- * TODO: Get a path of the box.
- * Get a predefined path based on where the box is placed.(e.g. "/door/1")
- * The path is a string value that is passed as the first argument to the connectivity_set_resource().
- */
-
-
-
-
-
- /**
- * Creates a connectivity resource and registers the resource in server.
+ * TODO: Creates a connectivity resource and registers the resource in server.
*/