Home
last modified time | relevance | path

Searched refs:block_option (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/coap/
Dcoap_client.c773 int block_option; in handle_response() local
905 block_option = coap_get_option_int(response, COAP_OPTION_BLOCK2); in handle_response()
906 if (block_option > 0 || response_truncated) { in handle_response()
908 last_block = response_truncated ? false : !GET_MORE(block_option); in handle_response()
909 block_num = (block_option > 0) ? GET_BLOCK_NUM(block_option) : 0; in handle_response()
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c1091 const uint8_t block_option = 0b11001; in ZTEST() local
1093 r = coap_append_option_int(&cpkt, COAP_OPTION_BLOCK2, block_option); in ZTEST()
1122 zassert_equal(*opt.value, block_option, "Wrong option content"); in ZTEST()