Home
last modified time | relevance | path

Searched refs:coap_add_data (Results 1 – 24 of 24) sorted by relevance

/third_party/libcoap/tests/
Dtest_pdu.c500 coap_add_data(pdu, 8, (const uint8_t *)"12345678"); in t_encode_pdu6()
520 result = coap_add_data(pdu, 0, NULL); in t_encode_pdu7()
547 result = coap_add_data(pdu, 1, (const uint8_t *)"\0"); in t_encode_pdu8()
598 result = coap_add_data(pdu, 4, (const uint8_t *)"data"); in t_encode_pdu9()
686 result = coap_add_data(pdu, 4, (const uint8_t *)"data"); in t_encode_pdu10()
707 result = coap_add_data(pdu, 10, (const uint8_t *)"0123456789"); in t_encode_pdu11()
886 coap_add_data(pdu, sizeof(data), data); in t_encode_pdu16()
1058 result = coap_add_data(pdu, 4, (const uint8_t *)"data"); in t_encode_pdu18()
1250 coap_add_data(pdu, sizeof(data), data); in t_encode_pdu21()
1327 coap_add_data(pdu, sizeof(data), data); in t_encode_pdu22()
[all …]
/third_party/libcoap/examples/
Detsi_iot_01.c112 coap_add_data(response, strlen(INDEX), (const uint8_t *)INDEX);
334 coap_add_data(response, len, buf); in hnd_get_query()
394 coap_add_data(response, 4, (const uint8_t *)"done"); in hnd_get_separate()
Dtiny.c68 coap_add_data(pdu, len, buf); in make_pdu()
Dcoap-rd.c158 coap_add_data(response, rd->data.length, rd->data.s); in hnd_get_resource()
Dcoap-server.c373 coap_add_data(response, 22, (const uint8_t *)"Invalid set time value"); in hnd_put_time()
/third_party/libcoap/src/
Dcoap_block.c242 return coap_add_data(pdu, in coap_add_block()
264 return coap_add_data(pdu, in coap_add_block_b_data()
352 if (!coap_add_data(response, length, data)) { in coap_add_data_blocked_response()
373 coap_add_data(response, in coap_add_data_blocked_response()
537 coap_add_data(resend_pdu, data_len, data); in coap_retransmit_oscore_pdu()
775 if (!coap_add_data(pdu, rem, &data[block.num * chunk])) in coap_add_data_large_internal()
950 if (!coap_add_data(pdu, rem, &data[block.num * chunk])) in coap_add_data_large_internal()
975 if (!coap_add_data(pdu, length, data)) in coap_add_data_large_internal()
1125 coap_add_data(response, in coap_add_data_large_response()
2244 coap_add_data(response, sizeof("Both Block2 and Q-Block2 invalid")-1, in coap_handle_request_send_block()
[all …]
Dcoap_async.c89 coap_add_data(s->pdu, len, data); in coap_register_async()
Dcoap_oscore.c567 if (!coap_add_data(plain_pdu, length, data)) in coap_oscore_new_pdu_encrypted()
611 if (!coap_add_data(osc_pdu, ciphertext_len, ciphertext_buffer)) in coap_oscore_new_pdu_encrypted()
682 coap_add_data(association->sent_pdu, size, data); in coap_oscore_new_pdu_encrypted()
740 coap_add_data(err_pdu, strlen(diagnostic), (const uint8_t *)diagnostic); in build_and_send_error_pdu()
1530 if (!coap_add_data(decrypt_pdu, in coap_oscore_decrypt_pdu()
Dcoap_net.c1489 coap_add_data(pdu, len, (uint8_t *)cp); in coap_send_internal()
2468 coap_add_data(response, (size_t)strlen(phrase), (const uint8_t *)phrase); in coap_new_error_response()
2546 if (!coap_add_data(response, len, data_string->s)) { in hnd_get_wellknown()
Dcoap_resource.c795 coap_add_data(s->pdu, len, data);
Dcoap_pdu.c781 coap_add_data(coap_pdu_t *pdu, size_t len, const uint8_t *data) { in coap_add_data() function
/third_party/libcoap/man/
Dcoap_pdu_setup.txt.in27 coap_add_data,
77 *int coap_add_data(coap_pdu_t *_pdu_, size_t _length_, const uint8_t *_data_);*
494 *Function: coap_add_data()*
496 The *coap_add_data*() function adds in the specified payload _data_ of length
504 as a direct replacement for *coap_add_data*() if it is possible that the data
542 and *coap_add_data*() return 0 on failure, 1 on success.
643 if (!coap_add_data(pdu, length, data))
DMakefile.am160 @echo ".so man3/coap_pdu_setup.3" > coap_add_data.3
Dcoap_block.txt.in202 The *coap_add_data_large_request*() function is similar to *coap_add_data*(),
230 should be used as a direct replacement for *coap_add_data*() if it is possible
Dcoap_handler.txt.in107 *coap_add_data*() is used to update _response_pdu_ where a copy of the data is
Dcoap_observe.txt.in396 if (!coap_add_data(pdu, length, data))
Dcoap_resource.txt.in333 coap_add_data(response, strlen(INDEX), (const uint8_t *)INDEX);
/third_party/libcoap/
Dlibcoap-3.map6 coap_add_data;
Dlibcoap-3.sym4 coap_add_data
/third_party/libcoap/examples/lwip/
Dserver-coap.c67 coap_add_data(response, len, buf); in hnd_get_time()
/third_party/libcoap/examples/riot/examples_libcoap_server/
Dserver-coap.c71 coap_add_data(response, len, buf); in hnd_get_time()
/third_party/libcoap/include/coap3/
Dcoap_pdu.h501 int coap_add_data(coap_pdu_t *pdu,
/third_party/libcoap/src/oscore/
Doscore_context.c713 coap_add_data(association->sent_pdu, size, data); in oscore_new_association()
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt354 `coap_add_data()` (or `coap_add_data_blocked_response()`) is replaced by