Home
last modified time | relevance | path

Searched refs:coap_add_option (Results 1 – 21 of 21) sorted by relevance

/third_party/libcoap/tests/
Dtest_error_response.c69 coap_add_option(pdu, COAP_OPTION_URI_HOST, 4, (const uint8_t *)"time"); in t_error_response2()
101 coap_add_option(pdu, 9, 0, NULL); in t_error_response3()
140 coap_add_option(pdu, 9, sizeof(optval), optval); in t_error_response4()
181 coap_add_option(pdu, 9, sizeof(optval), optval); in t_error_response5()
222 coap_add_option(pdu, 23, sizeof(optval), optval); in t_error_response6()
261 coap_add_option(pdu, 11, 4, (const uint8_t *)"time"); in t_error_response7()
264 coap_add_option(pdu, 23, sizeof(optval), optval); in t_error_response7()
297 coap_add_option(pdu, 1000, 0, NULL); in t_error_response8()
300 coap_add_option(pdu, 1001, 0, NULL); in t_error_response8()
301 coap_add_option(pdu, 1014, 0, NULL); in t_error_response8()
[all …]
Dtest_pdu.c398 result = coap_add_option(pdu, COAP_OPTION_URI_HOST, in t_encode_pdu4()
406 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, in t_encode_pdu4()
414 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, 0, NULL); in t_encode_pdu4()
421 result = coap_add_option(pdu, 8000, 8, (const uint8_t *)"fancyopt"); in t_encode_pdu4()
453 result = coap_add_option(pdu, COAP_OPTION_IF_MATCH, in t_encode_pdu5()
461 result = coap_add_option(pdu, COAP_OPTION_ACCEPT, in t_encode_pdu5()
564 result = coap_add_option(pdu, COAP_OPTION_ETAG, 8, (const uint8_t *)"someetag"); in t_encode_pdu9()
571 result = coap_add_option(pdu, COAP_OPTION_IF_NONE_MATCH, 0, NULL); in t_encode_pdu9()
578 result = coap_add_option(pdu, COAP_OPTION_PROXY_URI, in t_encode_pdu9()
649 result = coap_add_option(pdu, COAP_OPTION_LOCATION_PATH, 255, in t_encode_pdu10()
[all …]
Dtest_wellknown.c194 if (!coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown5()
233 if (!pdu || !coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown6()
/third_party/libcoap/examples/contiki/
Dcoap-observer.c141 coap_add_option(request, COAP_OPTION_URI_PORT, in PROCESS_THREAD()
159 coap_add_option(request, COAP_OPTION_URI_PATH, in PROCESS_THREAD()
166 coap_add_option(request, COAP_OPTION_OBSERVE, 0, NULL); in PROCESS_THREAD()
170 coap_add_option(request, COAP_OPTION_TOKEN, 2, buf); in PROCESS_THREAD()
/third_party/libcoap/examples/lwip/
Dserver-coap.c44 coap_add_option(response, COAP_OPTION_CONTENT_FORMAT, in hnd_get_time()
49 coap_add_option(response, COAP_OPTION_MAXAGE, in hnd_get_time()
/third_party/libcoap/examples/
Detsi_iot_01.c104 coap_add_option(response, COAP_OPTION_CONTENT_TYPE,
109 coap_add_option(response, COAP_OPTION_MAXAGE,
214 coap_add_option(response, COAP_OPTION_LOCATION_PATH, in hnd_post_test()
310 coap_add_option(response, COAP_OPTION_CONTENT_TYPE, in hnd_get_query()
Dcoap-rd.c128 coap_add_option(response, in hnd_get_resource()
135 coap_add_option(response, COAP_OPTION_ETAG, rd->etag_len, rd->etag); in hnd_get_resource()
246 coap_add_option(response, in hnd_get_rd()
252 coap_add_option(response, in hnd_get_rd()
540 coap_add_option(response, in hnd_post_rd()
Dcoap-server.c340 coap_add_option(response, in hnd_put_time()
/third_party/libcoap/
Dlibcoap-3.sym8 coap_add_option
Dlibcoap-3.map10 coap_add_option;
DChangeLog270 * pdu.c (coap_add_option): allow more than 15 options.
/third_party/libcoap/man/
DMakefile.am109 @echo ".so man3/coap_pdu_setup.3" > coap_add_option.3
Dcoap_pdu_setup.txt.in25 coap_add_option,
71 *size_t coap_add_option(coap_pdu_t *_pdu_, uint16_t _number_, size_t _length_,
323 The *coap_add_option*() function adds in the specified option of type _number_
Dcoap_resource.txt.in209 coap_add_option(response,
215 coap_add_option(response,
/third_party/libcoap/include/coap3/
Dpdu.h443 size_t coap_add_option(coap_pdu_t *pdu,
/third_party/libcoap/src/
Dpdu.c193 if (!coap_add_option(pdu, opt_iter.number, in coap_pdu_duplicate()
425 return coap_add_option(pdu, number, len, data); in coap_insert_option()
543 coap_add_option(coap_pdu_t *pdu, coap_option_num_t number, size_t len, in coap_add_option() function
Dblock.c177 coap_add_option(response, COAP_OPTION_ETAG, sizeof(etag), etag); in coap_add_data_blocked_response()
209 coap_add_option(response, in coap_add_data_blocked_response()
232 coap_add_option(response, in coap_add_data_blocked_response()
1085 if (!coap_add_option(response, opt_iter.number, in coap_handle_request_send_block()
Doption.c560 coap_add_option(pdu, opt->number, opt->length, opt->data); in coap_add_optlist_pdu()
Dnet.c2149 coap_add_option(response, opt_iter.number, in coap_new_error_response()
2275 coap_add_option(resp, in coap_wellknown_response()
2285 coap_add_option(resp, COAP_OPTION_CONTENT_FORMAT, in coap_wellknown_response()
2299 coap_add_option(resp, in coap_wellknown_response()
2784 coap_add_option(response, COAP_OPTION_OBSERVE, in handle_request()
2965 coap_add_option(pong, COAP_SIGNALING_OPTION_CUSTODY, 0, NULL); in handle_signaling()
Dresource.c928 coap_add_option(response, COAP_OPTION_OBSERVE,
934 coap_add_option(response, COAP_OPTION_BLOCK2,
Dcoap_session.c370 || coap_add_option(pdu, COAP_SIGNALING_OPTION_MAX_MESSAGE_SIZE, in coap_session_send_csm()
373 || coap_add_option(pdu, COAP_SIGNALING_OPTION_BLOCK_WISE_TRANSFER, in coap_session_send_csm()