Add tag_func_desc, tag_pos_rel, tag_pos_desc into server_certification_test
@@ -899,6 +899,8 @@ register_resources(void)
oc_resource_set_periodic_observable(temp_resource, 1);
oc_resource_set_request_handler(temp_resource, OC_GET, get_temp, NULL);
oc_resource_set_request_handler(temp_resource, OC_POST, post_temp, NULL);
+ oc_resource_tag_func_desc(temp_resource, OC_ENUM_HEATING);
+ oc_resource_tag_pos_desc(temp_resource, OC_POS_CENTRE);
oc_add_resource(temp_resource);
PRINT("\tTemperature resource added.\n");
bswitch = oc_new_resource(NULL, "/switch", 1, 0);
@@ -909,6 +911,9 @@ register_resources(void)
oc_resource_set_discoverable(bswitch, true);
oc_resource_set_request_handler(bswitch, OC_GET, get_switch, NULL);
oc_resource_set_request_handler(bswitch, OC_POST, post_switch, NULL);
+ oc_resource_tag_func_desc(bswitch, OC_ENUM_SMART);
+ oc_resource_tag_pos_rel(bswitch, 0.34, 0.5, 0.8);
+ oc_resource_tag_pos_desc(bswitch, OC_POS_TOP);
oc_add_resource(bswitch);
PRINT("\tSwitch resource added.\n");
#ifdef OC_COLLECTIONS
