Main Content

Expected Data Not Received on WiFi TCP or UDP Receive Block


The data received on the WiFi TCP Receive block or WiFi UDP Receive block is incorrect.

For example, suppose that the sender sends the number 4 in uint32 format, and the Data type parameter specified in the WiFi Receive block is uint8. At the sender, the number is an unsigned integer with 32 bits. The receiver block is configured to receive only 1 byte at each sample time. Instead of receiving the number 4 in the first time step, the block receives 0 in the first three time steps and receives 4 in the fourth time step.


Make sure the Data type and the Data size (N) block parameters of the WiFi Receive block match the type and the size of the sent data.

See Also

| | |