Skip to content

Commit

Permalink
Merge pull request #20554 from fabian18/pr/examples/gcoap_input_URI_a…
Browse files Browse the repository at this point in the history
…nd_proxy_fixes

examples/gcoap: take full URI as input
  • Loading branch information
benpicco authored May 14, 2024
2 parents bea466f + 7e97ee8 commit 8a4d823
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 140 deletions.
1 change: 1 addition & 0 deletions examples/gcoap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ USEMODULE += random
# Add also the shell, some shell commands
USEMODULE += shell
USEMODULE += shell_cmds_default
USEMODULE += uri_parser
USEMODULE += ps

# Comment this out to disable code in RIOT that does safety checking
Expand Down
6 changes: 3 additions & 3 deletions examples/gcoap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ The port defaults to 5683 for the `gcoap` and to 5684 for the `gcoap_dtls` examp

- For IPv6 setup (network interface can be omitted)

> coap get [fe80::d8b8:65ff:feee:121b%6]:5683 /.well-known/core
> coap get coap://[fe80::d8b8:65ff:feee:121b%6]:5683/.well-known/core
- For IPv4 setup

> coap get 192.168.2.135:5683 /.well-known/core
> coap get coap://192.168.2.135:5683/.well-known/core
- When including the module `sock_dns` for domain resolution

> coap get example.com:5683 /.well-known/core
> coap get coap://example.com:5683/.well-known/core
CLI output:

Expand Down
Loading

0 comments on commit 8a4d823

Please sign in to comment.