Commit 2d95175b authored by Jozef Kralik's avatar Jozef Kralik

cloud_tests: fill device 'dmn' property for CT5.2.* use cases

parent 369141a4
......@@ -90,12 +90,25 @@ display_menu(void)
} \
} while (0)
static void set_device_custom_property(void *data)
{
(void)data;
oc_rep_set_array(root, dmn);
oc_rep_object_array_begin_item(dmn);
oc_rep_set_text_string(dmn, language, "en");
oc_rep_set_text_string(dmn, value, manufacturer);
oc_rep_object_array_end_item(dmn);
oc_rep_close_array(root, dmn);
}
static int
app_init(void)
{
int ret = oc_init_platform(manufacturer, NULL, NULL);
ret |= oc_add_device("/oic/d", device_rt, device_name, spec_version,
data_model_version, NULL, NULL);
data_model_version, set_device_custom_property, NULL);
if (ret || !deviceid) {
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment