[riot-notifications] [RIOT-OS/RIOT] examples/gnrc_networking: move udp command to shell commands (#16598)

benpicco notifications at github.com
Wed Jun 30 16:22:54 CEST 2021

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description

The `udp` command is a valuable debugging tool that is also useful outside of the gnrc_networking example.

To enable easy sending of udp messages in other applications during development, move the `udp` command to the shell module and introduce the `gnrc_udp_cmd` pseudo-module to enable it.

### Testing procedure

The `udp` command is still present in the `gnrc_networking` example.

But it's now also possible to add

    USEMODULE += gnrc_udp_cmd

to e.g. `examples/gnrc_border_router` and have a simple test for one-way communication available there. 

### Issues/PRs references

Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * examples/gnrc_networking: move udp command to shell commands

-- File Changes --

    M examples/gnrc_networking/Makefile (4)
    M examples/gnrc_networking/main.c (9)
    M makefiles/pseudomodules.inc.mk (1)
    M sys/net/gnrc/Makefile.dep (5)
    M sys/shell/commands/Makefile (3)
    R sys/shell/commands/sc_gnrc_udp.c (4)
    M sys/shell/commands/shell_commands.c (7)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210630/e8d53545/attachment.htm>

More information about the notifications mailing list