1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/nanocoap_cli
bors[bot] 53176f7b9e
Merge #18134 #18738 #18939 #19118
18134: nanocoap_link_format: add helper function to parse Link Format r=kaspar030 a=benpicco



18738: nanocoap_sock: implement nanocoap_sock_delete() r=maribu a=benpicco



18939: gnrc_ipv6_nib: clean up _resolve_addr() r=maribu a=benpicco



19118: sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions r=kaspar030 a=kaspar030



Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-10 11:25:32 +00:00
..
main.c tests/nanocoap_cli: add test for no-response 2022-10-13 19:04:09 +02:00
Makefile boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
Makefile.ci boards/stm32g031-disco,examples,tests: Added STM32G031-DISCO board 2021-10-13 12:14:45 -04:00
nanocli_client.c Merge #18134 #18738 #18939 #19118 2023-01-10 11:25:32 +00:00
nanocli_server.c tests/nanocoap_cli: provide coap_request_ctx_t 2022-11-22 10:41:32 +01:00
README.md
request_handlers.c nanocoap: make use of coap_request_ctx_t 2022-07-17 14:29:39 +02:00

nanocoap Test App

Provides a CLI based tool for interactive or scripted testing of nanocoap client and server operation. Top level commands are listed below. To see command syntax, enter the command with no other text (for example, just "client").

server

Options are limited to start to start listening, and optionally the port on which to listen. Provides these resources:

/value
Reads/Writes an unsigned 8-bit integer.

/.well-known/core
Reads the list of resources. Expects a block2 based request or else returns at most the first 16 bytes of the list.

client

Provides get/put/post to an address for a resource, with an optional payload. A request always is sent confirmably due to a limitation of the nanocoap request generation facility.

inet6

Lists IPv6 address for each network interface. This listing is helpful for tap based testing, where the link local address is generated by the operating system.