WiFi TCP Send
Add-On Required: This feature requires the Embedded Coder Support Package for STMicroelectronics STM32 Processors add-on.
Libraries:
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32L475VG-Discovery (B-L475E-IOT01A)
Description
The WiFi TCP Send block sends data to a remote host or other hardware board over a wireless network.
Note
Your antivirus software or firewall might block TCP traffic. Configure the software to allow traffic from a specific IP port number.
Examples
Limitations
The sample time of the WiFi TCP Send and WiFi TCP Receive blocks should be more than 0.1 s, as the Wi-Fi® module on the board does not support sending data at a faster rate.
The maximum number of times a server can be started or restarted on the board is three. So:
The maximum number of blocks supported in the server mode is three.
When the model has a block in the server mode, and the client connected to that block/port gets disconnected for some reason, the server is restarted on the board for that block/port.
When you configure the block in the client mode, the remote server must be up and running before deploying the model that contains the WiFi TCP Send block to the target. If server is not running, there will be some fixed waiting time (while trying to connect to the server) at every execution. This might lead to overruns until the server is up again.
When using the WiFi TCP Send, WiFi TCP Receive, ThingSpeak Read, and ThingSpeak Write blocks in a model, the blocks must have the same sample time as the driver code is nonreentrant.
Ports
Input
Parameters
Extended Capabilities
Version History
Introduced in R2021a