examples/gcoap: replace _parse_endpoint by sock_udp_name2ep#17870
Conversation
|
The help entry for IPv6 is a bit weird now: |
|
Eh it's just a standard scheme now and it doesn't even have to be an IP address anymore. What I don't quite understand: Are you implying that you can set the port without the host? How would that make sense? |
True
No I didn't mean to imply that^^ Better use |
|
If you want to be extra nice also allow to leave the port out, then fall back to use |
That would be |
ebfef8e to
64ee747
Compare
|
Adding default ports is a useful addition. The example will now automatically set the port either to |
| return _print_usage(argv); | ||
| } | ||
|
|
||
| if (tmp_remote.port == 0) { |
There was a problem hiding this comment.
Here it would also be possible to remove the port completely from the string.
64ee747 to
4c19acf
Compare
benpicco
left a comment
There was a problem hiding this comment.
That's much nicer to use 👍
But README.md now needs an update too.
4c19acf to
63a55be
Compare
63a55be to
9a51e2d
Compare
I updated the README to include all three possible query types |
|
Should we maybe rather go with a URI here? This way we can also use CoAP and CoAPS as client at the same time ;-). |
|
Unfortunately the |
9a51e2d to
4339f06
Compare
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
|
This needs a rebase |
4339f06 to
a673d50
Compare
|
I'd love to fix whatever is wrong with this PR, but the new CI does not show me any output :( |
working on it. I think new murdock stumbled over the tick in that "don't stale" label. |
benpicco
left a comment
There was a problem hiding this comment.
Looks much cleaner now.
|
Thanks for the review! |
|
This might have broken release tests: https://github.com/RIOT-OS/RIOT/actions/runs/3606686090/jobs/6078208407#step:14:443 |
Contribution description
Replace custom endpoint parsing function with the use of
sock_udp_name2ep.This changes the way be input the address and the port. These are now not two arguments anymore but only a single one.
Issues/PRs references
Dependencies: