Home
last modified time | relevance | path

Searched refs:COAP_RESPONSE_CODE (Results 1 – 10 of 10) sorted by relevance

/third_party/libcoap/include/coap3/
Dcoap_pdu.h156 #define COAP_RESPONSE_CODE(N) (((N)/100 << 5) | (N)%100) macro
333 COAP_RESPONSE_CODE_CREATED = COAP_RESPONSE_CODE(201),
334 COAP_RESPONSE_CODE_DELETED = COAP_RESPONSE_CODE(202),
335 COAP_RESPONSE_CODE_VALID = COAP_RESPONSE_CODE(203),
336 COAP_RESPONSE_CODE_CHANGED = COAP_RESPONSE_CODE(204),
337 COAP_RESPONSE_CODE_CONTENT = COAP_RESPONSE_CODE(205),
338 COAP_RESPONSE_CODE_CONTINUE = COAP_RESPONSE_CODE(231),
339 COAP_RESPONSE_CODE_BAD_REQUEST = COAP_RESPONSE_CODE(400),
340 COAP_RESPONSE_CODE_UNAUTHORIZED = COAP_RESPONSE_CODE(401),
341 COAP_RESPONSE_CODE_BAD_OPTION = COAP_RESPONSE_CODE(402),
[all …]
/third_party/libcoap/src/
Dcoap_pdu.c841 { COAP_RESPONSE_CODE(201), "Created" },
842 { COAP_RESPONSE_CODE(202), "Deleted" },
843 { COAP_RESPONSE_CODE(203), "Valid" },
844 { COAP_RESPONSE_CODE(204), "Changed" },
845 { COAP_RESPONSE_CODE(205), "Content" },
846 { COAP_RESPONSE_CODE(231), "Continue" },
847 { COAP_RESPONSE_CODE(400), "Bad Request" },
848 { COAP_RESPONSE_CODE(401), "Unauthorized" },
849 { COAP_RESPONSE_CODE(402), "Bad Option" },
850 { COAP_RESPONSE_CODE(403), "Forbidden" },
[all …]
Dcoap_block.c297 response->code = COAP_RESPONSE_CODE(400); in coap_add_data_blocked_response()
302 response->code = COAP_RESPONSE_CODE(205); in coap_add_data_blocked_response()
327 response->code = COAP_RESPONSE_CODE(400); in coap_add_data_blocked_response()
333 response->code = COAP_RESPONSE_CODE(500); in coap_add_data_blocked_response()
1052 response->code = COAP_RESPONSE_CODE(400); in coap_add_data_large_response()
1063 response->code = COAP_RESPONSE_CODE(400); in coap_add_data_large_response()
1095 response->code = COAP_RESPONSE_CODE(400); in coap_add_data_large_response()
1101 response->code = COAP_RESPONSE_CODE(500); in coap_add_data_large_response()
1114 response->code = COAP_RESPONSE_CODE(500); in coap_add_data_large_response()
1382 COAP_RESPONSE_CODE(408), in pdu_408_build()
[all …]
Dcoap_oscore.c276 coap_request ? COAP_REQUEST_CODE_POST : COAP_RESPONSE_CODE(204); in coap_oscore_new_pdu_encrypted()
540 osc_pdu->code = COAP_RESPONSE_CODE(205); in coap_oscore_new_pdu_encrypted()
898 COAP_RESPONSE_CODE(402), in coap_oscore_decrypt_pdu()
973 COAP_RESPONSE_CODE(401), in coap_oscore_decrypt_pdu()
996 COAP_RESPONSE_CODE(401), in coap_oscore_decrypt_pdu()
1322 COAP_RESPONSE_CODE(400), in coap_oscore_decrypt_pdu()
1368 COAP_RESPONSE_CODE(401), in coap_oscore_decrypt_pdu()
1381 if (plain_pdu->code != COAP_RESPONSE_CODE(401)) { in coap_oscore_decrypt_pdu()
1441 COAP_RESPONSE_CODE(401), in coap_oscore_decrypt_pdu()
1460 COAP_RESPONSE_CODE(401), in coap_oscore_decrypt_pdu()
[all …]
Dcoap_net.c1394 if (pdu->code == COAP_RESPONSE_CODE(508)) { in coap_send_internal()
2378 if (code != COAP_RESPONSE_CODE(508)) { in coap_new_error_response()
2560 response->code = COAP_RESPONSE_CODE(205); in hnd_get_wellknown()
2568 response->code = COAP_RESPONSE_CODE(503); in hnd_get_wellknown()
2708 response->code == COAP_RESPONSE_CODE(205)) { in no_response()
3117 response->code = COAP_RESPONSE_CODE(400); in handle_request()
3124 response->code = COAP_RESPONSE_CODE(400); in handle_request()
3186 if (response->code == COAP_RESPONSE_CODE(401) && in handle_request()
3196 response->code = COAP_RESPONSE_CODE(231); in handle_request()
3246 !lg_xmit_ctrl && response->code == COAP_RESPONSE_CODE(205) && in handle_request()
[all …]
Dcoap_resource.c1119 response->code = COAP_RESPONSE_CODE(404);
1132 if (response->code == COAP_RESPONSE_CODE(205) &&
/third_party/libcoap/tests/
Dtest_error_response.c42 response = coap_new_error_response(pdu, COAP_RESPONSE_CODE(400), &opts); in t_error_response1()
72 response = coap_new_error_response(pdu, COAP_RESPONSE_CODE(404), &opts); in t_error_response2()
87 const uint8_t code = COAP_RESPONSE_CODE(402); in t_error_response3()
120 const uint8_t code = COAP_RESPONSE_CODE(402); in t_error_response4()
159 const uint8_t code = COAP_RESPONSE_CODE(402); in t_error_response5()
200 const uint8_t code = COAP_RESPONSE_CODE(402); in t_error_response6()
241 const uint8_t code = COAP_RESPONSE_CODE(402); in t_error_response7()
283 const uint8_t code = COAP_RESPONSE_CODE(503); in t_error_response8()
Dtest_pdu.c456 pdu->code = COAP_RESPONSE_CODE(404); in t_encode_pdu5()
515 pdu->code = COAP_RESPONSE_CODE(203); in t_encode_pdu7()
538 pdu->code = COAP_RESPONSE_CODE(203); in t_encode_pdu8()
571 pdu->code = COAP_RESPONSE_CODE(204); in t_encode_pdu9()
653 pdu->code = COAP_RESPONSE_CODE(204); in t_encode_pdu10()
1027 pdu->code = COAP_RESPONSE_CODE(204); in t_encode_pdu18()
/third_party/libcoap/examples/lwip/
Dserver-coap.c45 my_clock_base ? COAP_RESPONSE_CODE(205) : COAP_RESPONSE_CODE(404); in hnd_get_time()
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt229 response->code = COAP_RESPONSE_CODE(404);