# Wi-Fi TCP

Source: [https://docs.qualcomm.com/doc/80-58740-4/topic/wifi-tcp.html](https://docs.qualcomm.com/doc/80-58740-4/topic/wifi-tcp.html)

This section mainly introduces the use of QCC743/QCC744 Wi-Fi and how to make TCP
            requests.

## Hardware preparation

See [Hardware preparation](https://docs.qualcomm.com/doc/80-58740-4/topic/wifi-http.html#wifi-http__section_jgv_kxd_41c)

## Software implementation

For more detailed code, refer to examples/wifi/sta/wifi\_tcp.

## Compile and program

- The Makefile file has already configured CHIP and BOARD parameters, and
                            does not need to be filled in by the user.

    $ cd examples/wifi/sta/wifi_tcp
    $ makeCopy to clipboard

## Experimental phenomena

- Open the serial port terminal software, press the reset key, and output the
                        log. Press the Enter key to display the words
                            `qcc74x />`, similar to the Linux terminal.
- Enter wifi\_sta\_connect ssid pwd to connect to the network, where ssid is the
                        connected ap name and pwd is the connected ap password
- After the Wi-Fi connection is successful, the assigned IP address will be
                        printed out and CONNECTED will be prompted.

If you want to test TCP Tx, use the following instructions for testing.

- The TCP server must be initialized on the PC side of the same LAN using the
                        iperf instruction
- Enter wifi\_tcp\_test Server IP port to connect to the tcp server

If you want to test TCP Rx, please use the following instructions for testing.

- Enter wifi\_tcp\_echo\_test port to start a TCP server
- The client can connect to the TCP server of the module through the iperf
                        command

**Parent Topic:** [Wi-Fi 6](https://docs.qualcomm.com/doc/80-58740-4/topic/wifi6_1.html)

Last Published: Feb 10, 2025

[Previous Topic
Wi-Fi HTTP](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/wifi-http.md) [Next Topic
Wi-Fi UDP](https://docs.qualcomm.com/bundle/publicresource/80-58740-4/topics/wifi-udp.md)