Update oc_server_api.c
/* tag-pos-desc will be handled as a string */
e.g. tag-pos-desc instead of tag - pos - string
@@ -158,12 +158,14 @@ oc_process_baseline_interface(oc_resource_t *resource)
if (resource->tag_pos_desc > 0) {
const char *desc = oc_enum_pos_desc_to_str(resource->tag_pos_desc);
if (desc) {
+ /* tag-pos-desc will be handled as a string */
oc_rep_set_text_string(root, tag-pos-desc, desc);
}
}
if (resource->tag_func_desc > 0) {
const char *func = oc_enum_to_str(resource->tag_func_desc);
if (func) {
+ /* tag-pos-desc will be handled as a string */
oc_rep_set_text_string(root, tag-func-desc, func);
}
}
