2024-12-05 08:08 AM
Sorry for asking an obvious question...
LWIP documentation describes a udp_pcb as "Creates a new UDP pcb which can be used for UDP communication."
https://lwip.fandom.com/wiki/Raw/UDP
When connecting to multiple devices with an IP address each using UDP protocol with LWIP, is it expected that you allocate a udp_pcb struct per connected device? Or try and re-use a single UDP protocol control block.
E.g. One Device connecting to 5 other devices:
therefore create five udp_pcb objects?
or
re-use one udp_pcb but send to different IP addresses?
Thanks in advance.
Solved! Go to Solution.
2024-12-05 09:30 AM
Hello @###### ,
I recommend that you use a udp_pcb per connection.
Regards
2024-12-05 09:30 AM
Hello @###### ,
I recommend that you use a udp_pcb per connection.
Regards
2024-12-05 09:40 AM - edited 2024-12-05 09:41 AM
Thanks.