Add a new function coap_set_header_uri_path_segment(). Also fix a bug in coap_serialize_multi_option().