UDP Send
R2026bSend UDP packets to UDP host
Libraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32F7
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32H7
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.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stmnucleof7lib/UDP Send"
"stmnucleoh7lib/UDP Send"
Example: add_block("stmnucleof7lib/UDP Send","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2017a