Difference between revisions of "HANcoder/STM32/Blocks/UDP Server Init"

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
(Created page with "{{HANcoder/block| info= With this block you can initialize a UDP server for receiving UDP packets on a specified port. Upon initialization the UDP server allocates a receptio...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{HANcoder/block|
+
{{HANcoder/Block/UDP
  
info=
+
|info=
 
With this block you can initialize a UDP server for receiving UDP packets on a specified port.
 
With this block you can initialize a UDP server for receiving UDP packets on a specified port.
 
Upon initialization the UDP server allocates a reception buffer. Each time a UDP packet is received, its data is written to the reception buffer. The data of the previous packet is overwritten.
 
Upon initialization the UDP server allocates a reception buffer. Each time a UDP packet is received, its data is written to the reception buffer. The data of the previous packet is overwritten.
Line 8: Line 8:
 
|blockImage=
 
|blockImage=
 
UDPServerInit.png
 
UDPServerInit.png
 
 
|maskImage=
 
|maskImage=
 
UDPServerInitMask.png
 
UDPServerInitMask.png
  
 +
}}
 +
 +
== Block parameters ==
 +
{| class="wikitable"
 +
|-
 +
! style="width:150px" | Parameter
 +
! Description
 +
|-
 +
| Port
 +
| Enter the destination port
 +
|}
 +
 +
{{HANcoder/BlockFooter|
 +
|SeeAlso = [[HANcoder/STM32/Blocks/UDP_Client_Send|UDP client send]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_New_Data_Available|UDP Server new data available]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_Receive|UDP Server receive]] {{!}} [[HANcoder/STM32/Blocks/UDP_Server_Receive_Size|UDP Server receive size]]
 
}}
 
}}

Latest revision as of 10:35, 5 May 2017

Supported Targets: E407

General information about UDP Server Init

With this block you can initialize a UDP server for receiving UDP packets on a specified port. Upon initialization the UDP server allocates a reception buffer. Each time a UDP packet is received, its data is written to the reception buffer. The data of the previous packet is overwritten. The following blocks can be used to obtain data and information from the reception buffer: 'UDP Server Receive', 'UDP Server New Data Available' and 'UDP Server Receive Size'.

Block

UDPServerInit.png

Mask

UDPServerInitMask.png

Block parameters

Parameter Description
Port Enter the destination port

See Also

UDP client send | UDP Server new data available | UDP Server receive | UDP Server receive size