RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

gcoap: separate response

Open fabian18 opened this issue 1 year ago • 2 comments

Contribution description

  • gcoap separate response (even confirmable)

Testing procedure

/separate resource in gcoap example

sudo ./dist/tools/tapsetup/tapsetup

Server and Client

make BOARD=native64 -C examples/networking/coap/gcoap flash term PORT=tap0

Client

coap get coap://[fe80::4d3:11ff:fe35:6a43%7]/separate
2025-05-08 13:53:58,734 # coap get coap://[fe80::4d3:11ff:fe35:6a43%7]/separate
2025-05-08 13:53:58,734 # gcoap_cli: sending msg ID 9794, 15 bytes
> 2025-05-08 13:54:01,735 # gcoap: response Success, code 2.05, 24 bytes
2025-05-08 13:54:01,735 # 00000000  54  68  69  73  20  69  73  20  61  20  64  65  6C  61  79  65
2025-05-08 13:54:01,740 # 00000010  64  20  72  65  73  70  6F  6E
coap get -c coap://[fe80::4d3:11ff:fe35:6a43%7]/separate
2025-05-08 13:54:07,130 # coap get -c coap://[fe80::4d3:11ff:fe35:6a43%7]/separate
2025-05-08 13:54:07,131 # gcoap_cli: sending msg ID 9795, 15 bytes
> 2025-05-08 13:54:10,132 # gcoap: response Success, code 2.05, 24 bytes
2025-05-08 13:54:10,132 # 00000000  54  68  69  73  20  69  73  20  61  20  64  65  6C  61  79  65
2025-05-08 13:54:10,133 # 00000010  64  20  72  65  73  70  6F  6E

coap_sep.pcapng.zip

Issues/PRs references

fabian18 avatar May 25 '24 19:05 fabian18

Murdock results

:heavy_check_mark: PASSED

a574b7b96a4c4037b851793b2c19ced9b52f2dda sys/net/application_layer/nanocoap: use coap_build_separate_reply

Success Failures Total Runtime
10337 0 10337 12m:18s

Artifacts

riot-ci avatar Oct 23 '24 15:10 riot-ci

You should probably update the title and the description a bit to reflect the current state of this PR 🤔😅

crasbe avatar May 07 '25 11:05 crasbe

@chrysn can you maybe have a look?

miri64 avatar Jun 24 '25 18:06 miri64