UDP Send
Libraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32F7
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32H7
STM32 Microcontroller Blockset /
STM32H7xx Based Boards
Description
The UDP Send block sends an input vector as UDP packets over an IP network port to a UDP host. Use the block for stateless and connectionless data transmission.
The block sends packets from the port number specified in the Local IP Port (-1 for automatic port assignment) parameter.
Specify the IP address and the port number of the receiving host in the Remote IP address (255.255.255.255 for broadcast) and Remote IP Port parameter.
You can choose to send the UDP packets in blocking or non-blocking mode.
Note
Ensure to configure the Ethernet options in STM32CubeMX project. For more, see Ethernet Configuration in STM32CubeMX for STM32 Processor-Based Boards.
Examples
Ports
Input
Output
Parameters
Version History
Introduced in R2022b

