Skip to content
Commit 391290e6 authored by Damian Krolik's avatar Damian Krolik Committed by Benjamin Cabé
Browse files

net: shell: udp: allow sending packet when bound



"udp bind" and "udp send" commands use the same net context
variable and they fail early if the context is already used.

This prevents from using "udp send" after "udp bind", which
makes the commands hard to use for testing bidirectional
communication. Make "udp send" reuse the already bound
context if possible, and resort to allocating temporary one
otherwise.

Signed-off-by: default avatarDamian Krolik <damian.krolik@nordicsemi.no>
parent 81141b16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment