Home
last modified time | relevance | path

Searched refs:coap_opt_value (Results 1 – 23 of 23) sorted by relevance

/third_party/libcoap/include/coap3/
Dblock.h50 (coap_opt_length(opt) ? (coap_opt_value(opt) + (coap_opt_length(opt)-1)) : 0)
79 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) |= 0x08;
81 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) &= ~0x08;
Doption.h309 const uint8_t *coap_opt_value(const coap_opt_t *opt);
/third_party/libcoap/src/
Dcoap_debug.c566 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
577 buf_len = print_readable(coap_opt_value(option), in coap_show_pdu()
583 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
592 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
601 content_format = (int)coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
626 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
633 opt_val = coap_opt_value(option); in coap_show_pdu()
656 buf_len = print_readable(coap_opt_value(option), in coap_show_pdu()
Duri.c569 const uint8_t *seg= coap_opt_value(q); in coap_get_query()
590 const uint8_t *seg= coap_opt_value(q); in coap_get_query()
619 const uint8_t *seg= coap_opt_value(q); in coap_get_uri_path()
645 const uint8_t *seg= coap_opt_value(q); in coap_get_uri_path()
Dblock.c29 num = coap_decode_var_bytes(coap_opt_value(block_opt), in coap_opt_block_num()
983 uint64_t etag = coap_decode_var_bytes8(coap_opt_value(etag_opt), in coap_handle_request_send_block()
1087 coap_opt_value(option))) { in coap_handle_request_send_block()
1255 uint16_t fmt = fmt_opt ? coap_decode_var_bytes(coap_opt_value(fmt_opt), in coap_handle_request_put_block()
1259 total = size_opt ? coap_decode_var_bytes(coap_opt_value(size_opt), in coap_handle_request_put_block()
1302 memcpy(p->observe, coap_opt_value(observe), p->observe_length); in coap_handle_request_put_block()
1642 coap_decode_var_bytes(coap_opt_value(size_opt), in coap_handle_response_get_block()
1657 coap_decode_var_bytes(coap_opt_value(fmt_opt), in coap_handle_response_get_block()
1677 memcpy(p->etag, coap_opt_value(etag_opt), p->etag_length); in coap_handle_response_get_block()
1694 if (!full_match(coap_opt_value(etag_opt), in coap_handle_response_get_block()
[all …]
Dnet.c1077 observe_action = coap_decode_var_bytes(coap_opt_value(opt), in coap_send()
1198 coap_decode_var_bytes (coap_opt_value (opt), coap_opt_length (opt)); in coap_send_internal()
2151 coap_opt_value(option)); in coap_new_error_response()
2423 val = coap_decode_var_bytes(coap_opt_value(nores), coap_opt_length(nores)); in no_response()
2570 if (coap_split_proxy_uri(coap_opt_value(opt), in handle_request()
2583 uri.host.s = coap_opt_value(opt); in handle_request()
2611 coap_decode_var_bytes (coap_opt_value (opt), coap_opt_length (opt)); in handle_request()
2766 coap_decode_var_bytes(coap_opt_value(observe), in handle_request()
2951 coap_session_set_mtu(session, coap_decode_var_bytes(coap_opt_value(option), in handle_signaling()
Doption.c251 coap_opt_value(const coap_opt_t *opt) { in coap_opt_value() function
Dresource.c197 resource_param.s = coap_opt_value(query_filter);
218 coap_opt_value(query_filter) + resource_param.length + 1;
Dpdu.c195 coap_opt_value(option))) in coap_pdu_duplicate()
/third_party/libcoap/examples/
Detsi_iot_01.c204 coap_decode_var_bytes(coap_opt_value(option), coap_opt_length(option)); in hnd_post_test()
215 coap_opt_length(buf), coap_opt_value(buf)); in hnd_post_test()
263 coap_decode_var_bytes(coap_opt_value(option), coap_opt_length(option)); in hnd_put_test()
327 memcpy(buf + len, coap_opt_value(q), L); in hnd_get_query()
365 if (strncmp("delay=", (const char *)coap_opt_value(option), 6) == 0) { in hnd_get_separate()
370 d = d * 10 + coap_opt_value(option)[i] - '0'; in hnd_get_separate()
Dcoap-server.c576 coap_decode_var_bytes (coap_opt_value (option), in hnd_put_example_data()
667 const char *opt_val = (const char*)coap_opt_value(opt); in get_uri_proxy_scheme_info()
700 uri->host.s = coap_opt_value(opt); in get_uri_proxy_scheme_info()
709 coap_decode_var_bytes (coap_opt_value (opt), in get_uri_proxy_scheme_info()
1039 (const char*)coap_opt_value(proxy_uri)); in hnd_proxy_uri()
1040 if (coap_split_proxy_uri(coap_opt_value(proxy_uri), in hnd_proxy_uri()
1125 coap_opt_value(proxy_uri))); in hnd_proxy_uri()
1149 coap_opt_value(buf))); in hnd_proxy_uri()
1164 coap_opt_value(buf))); in hnd_proxy_uri()
1190 coap_opt_value(option))); in hnd_proxy_uri()
[all …]
Dcoap-rd.c394 memcpy(rd->etag, coap_opt_value(etag), rd->etag_len); in make_rd()
543 coap_opt_value(b)); in hnd_post_rd()
Dcoap-client.c697 coap_opt_value(buf))); in cmdline_uri()
712 coap_opt_value(buf))); in cmdline_uri()
/third_party/libcoap/tests/
Dtest_options.c366 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 1); in t_access_option1()
379 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 3); in t_access_option2()
395 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); in t_access_option3()
408 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); in t_access_option4()
421 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 5); in t_access_option5()
437 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), NULL); in t_access_option6()
450 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), NULL); in t_access_option7()
Dtest_pdu.c731 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu12()
766 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu13()
801 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu14()
836 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu15()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in19 coap_opt_value,
48 *const uint8_t *coap_opt_value(const coap_opt_t *_opt_);*
303 uint32_t value = coap_decode_var_bytes(coap_opt_value(option),
Dcoap_block.txt.in232 coap_opt_length(sbuf), coap_opt_value(sbuf))))
245 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_pdu_setup.txt.in450 coap_opt_length(sbuf), coap_opt_value(sbuf))))
463 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_cache.txt.in328 coap_decode_var_bytes (coap_opt_value (option),
/third_party/libcoap/
Dlibcoap-3.map136 coap_opt_value;
Dlibcoap-3.sym134 coap_opt_value
DChangeLog250 * option.c (coap_opt_size, coap_opt_value, coap_opt_length):
/third_party/libcoap/examples/contiki/
Dcoap-observer.c160 coap_opt_length(buf), coap_opt_value(buf)); in PROCESS_THREAD()