Home
last modified time | relevance | path

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

/dports/net/libcoap/libcoap-4.3.0/tests/
H A 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 …]
H A 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()
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()
578 result = coap_add_option(pdu, COAP_OPTION_PROXY_URI, in t_encode_pdu9()
866 coap_add_option(pdu, opt_num[n], in t_encode_pdu16()
926 coap_add_option(pdu, opt_num[n], in t_encode_pdu17()
1072 coap_add_option(pdu, opt_num[n], in t_encode_pdu19()
1129 coap_add_option(pdu, opt_num[n], in t_encode_pdu20()
1183 coap_add_option(pdu, opt_num[n], in t_encode_pdu21()
[all …]
H A 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()
/dports/net/libcoap/libcoap-4.3.0/examples/contiki/
H A 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()
/dports/net/libcoap/libcoap-4.3.0/examples/lwip/
H A 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()
/dports/net/libcoap/libcoap-4.3.0/examples/
H A 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()
H A 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()
H A Dcoap-server.c340 coap_add_option(response, in hnd_put_time()
/dports/net/libcoap/libcoap-4.3.0/man/
H A DMakefile.am109 @echo ".so man3/coap_pdu_setup.3" > coap_add_option.3
H A 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_
H A Dcoap_resource.txt.in209 coap_add_option(response,
215 coap_add_option(response,
/dports/net/libcoap/libcoap-4.3.0/
H A Dlibcoap-3.map10 coap_add_option;
H A Dlibcoap-3.sym8 coap_add_option
H A DChangeLog270 * pdu.c (coap_add_option): allow more than 15 options.
/dports/net/libcoap/libcoap-4.3.0/include/coap3/
H A Dpdu.h436 size_t coap_add_option(coap_pdu_t *pdu,
/dports/net/libcoap/libcoap-4.3.0/src/
H A 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
H A 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()
H A Doption.c557 coap_add_option(pdu, opt->number, opt->length, opt->data); in coap_add_optlist_pdu()
H A Dnet.c2150 coap_add_option(response, opt_iter.number, in coap_new_error_response()
2276 coap_add_option(resp, in coap_wellknown_response()
2286 coap_add_option(resp, COAP_OPTION_CONTENT_FORMAT, in coap_wellknown_response()
2300 coap_add_option(resp, in coap_wellknown_response()
2785 coap_add_option(response, COAP_OPTION_OBSERVE, in handle_request()
2964 coap_add_option(pong, COAP_SIGNALING_OPTION_CUSTODY, 0, NULL); in handle_signaling()
H A Dresource.c928 coap_add_option(response, COAP_OPTION_OBSERVE,
934 coap_add_option(response, COAP_OPTION_BLOCK2,
H A Dcoap_session.c362 || coap_add_option(pdu, COAP_SIGNALING_OPTION_MAX_MESSAGE_SIZE, in coap_session_send_csm()
365 || coap_add_option(pdu, COAP_SIGNALING_OPTION_BLOCK_WISE_TRANSFER, in coap_session_send_csm()