}
/* device id */
- random_res = OCConvertUuidToString(resource->sid, device_id);
+ random_res = OCConvertUuidToString(discovered->sid, device_id);
if (RAND_UUID_OK != random_res) {
ERR("OCConvertUuidToString() Fail(%d)", random_res);
resource = resource->next;
return NULL;
}
- value = g_variant_new("(sssss)", repr->uri, repr->deviceName, repr->specVersion,
+ value = g_variant_new("(ssss)", repr->deviceName, repr->specVersion,
device_id, repr->dataModelVersion);
return value;
GVariant *parameters,
gpointer user_data)
{
- char *uri_path;
struct icl_device_info info = {0};
icl_device_info_s *cb_container = user_data;
iotcon_device_info_cb cb = cb_container->cb;
cb_container->found = true;
- g_variant_get(parameters, "(&s&s&s&s&s)", &uri_path, &info.device_name,
+ g_variant_get(parameters, "(&s&s&s&s)", &info.device_name,
&info.spec_ver, &info.device_id, &info.data_model_ver);
- /* From iotivity, we can get uri_path. But, the value is always "/oic/d". */
-
if (cb)
cb(&info, IOTCON_ERROR_NONE, cb_container->user_data);
}