Home
last modified time | relevance | path

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

/net-tools-3.4.0/libcoap/tests/
Dtest_error_response.c69 coap_add_option(pdu, COAP_OPTION_URI_HOST, 4, (unsigned char *)"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, (unsigned char *)"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.c319 result = coap_add_option(pdu, COAP_OPTION_URI_HOST, in t_encode_pdu4()
327 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, in t_encode_pdu4()
335 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, 0, NULL); in t_encode_pdu4()
342 result = coap_add_option(pdu, 8000, 8, (unsigned char *)"fancyopt"); in t_encode_pdu4()
374 result = coap_add_option(pdu, COAP_OPTION_IF_MATCH, in t_encode_pdu5()
382 result = coap_add_option(pdu, COAP_OPTION_ACCEPT, in t_encode_pdu5()
484 result = coap_add_option(pdu, COAP_OPTION_ETAG, 8, (unsigned char *)"someetag"); in t_encode_pdu9()
491 result = coap_add_option(pdu, COAP_OPTION_IF_NONE_MATCH, 0, NULL); in t_encode_pdu9()
498 result = coap_add_option(pdu, COAP_OPTION_PROXY_URI, in t_encode_pdu9()
569 result = coap_add_option(pdu, COAP_OPTION_LOCATION_PATH, 255, in t_encode_pdu10()
[all …]
Dtest_wellknown.c189 if (!coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown5()
227 if (!pdu || !coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown6()
/net-tools-3.4.0/libcoap/examples/contiki/
Dcoap-observer.c142 coap_add_option(request, COAP_OPTION_URI_PORT, in PROCESS_THREAD()
158 coap_add_option(request, COAP_OPTION_URI_PATH, in PROCESS_THREAD()
165 coap_add_option(request, COAP_OPTION_SUBSCRIPTION, 0, NULL); in PROCESS_THREAD()
169 coap_add_option(request, COAP_OPTION_TOKEN, 2, buf); in PROCESS_THREAD()
Dserver.c112 coap_add_option(response, COAP_OPTION_OBSERVE, in hnd_get_time()
117 coap_add_option(response, COAP_OPTION_CONTENT_FORMAT, in hnd_get_time()
120 coap_add_option(response, COAP_OPTION_MAXAGE, in hnd_get_time()
/net-tools-3.4.0/libcoap/examples/
Dcoap-server.c80 coap_add_option(response, in hnd_get_index()
84 coap_add_option(response, in hnd_get_index()
115 coap_add_option(response, in hnd_get_time()
121 coap_add_option(response, in hnd_get_time()
125 coap_add_option(response, in hnd_get_time()
Detsi_iot_01.c136 coap_add_option(response, COAP_OPTION_CONTENT_TYPE, in hnd_get_index()
139 coap_add_option(response, COAP_OPTION_MAXAGE, in hnd_get_index()
164 coap_add_option(response, COAP_OPTION_CONTENT_TYPE, in hnd_get_resource()
171 coap_add_option(response, COAP_OPTION_ETAG, sizeof(etag), etag); in hnd_get_resource()
293 coap_add_option(response, COAP_OPTION_LOCATION_PATH, in hnd_post_test()
383 coap_add_option(response, COAP_OPTION_CONTENT_TYPE, in hnd_get_query()
482 coap_add_option(response, COAP_OPTION_CONTENT_TYPE, in check_async()
Dclient.c160 coap_add_option(pdu, in coap_new_request()
204 if (!coap_add_option(pdu, in clear_obs()
214 if (!coap_add_option(pdu, in clear_obs()
228 if (!coap_add_option (pdu, in clear_obs()
389 coap_add_option (pdu, in message_handler()
402 coap_add_option(pdu, in message_handler()
454 coap_add_option (pdu, in message_handler()
470 coap_add_option(pdu, in message_handler()
Dcoap-rd.c110 coap_add_option(response, in hnd_get_resource()
117 coap_add_option(response, COAP_OPTION_ETAG, rd->etag_len, rd->etag); in hnd_get_resource()
235 coap_add_option(response, in hnd_get_rd()
241 coap_add_option(response, in hnd_get_rd()
530 coap_add_option(response, in hnd_post_rd()
/net-tools-3.4.0/libcoap/
Dlibcoap-1.sym5 coap_add_option
Dlibcoap-1.map7 coap_add_option;
DChangeLog183 * pdu.c (coap_add_option): allow more than 15 options.
/net-tools-3.4.0/libcoap/src/
Dblock.c110 coap_add_option(pdu, type, coap_encode_var_bytes(buf, ((block->num << 4) | in coap_write_block_opt()
Dpdu.c171 coap_add_option(coap_pdu_t *pdu, unsigned short type, unsigned int len, const unsigned char *data) { in coap_add_option() function
Dnet.c1110 coap_add_option(response, opt_iter.type, in coap_new_error_response()
1213 coap_add_option(resp, COAP_OPTION_CONTENT_FORMAT, in coap_wellknown_response()
/net-tools-3.4.0/libcoap/include/coap/
Dpdu.h354 size_t coap_add_option(coap_pdu_t *pdu,
/net-tools-3.4.0/
Dcoap-client.c1127 coap_add_option(pdu, in add_options()
1186 coap_add_option(pdu, in coap_new_request()
1234 coap_add_option(pdu, blktype, in read_blocks()
1420 coap_add_option(pdu, in coap_message_handler()