Skip to content

SyedMIrtazaHyder/ESP32-TCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32-TCP-Server

A TCP server programmed on ESPIDF using the wifi and lwIP APIs.

Steps

  1. Make a file called wifi_configs.h and put in the main directory. Write the following data in it:
    #define SSID "YOUR SSID"
    #define PASSWORD "YOUR WIFI PASSWORD"
  1. Compile the project using espidf and flash it to the ESP32 idf.py build flash
  2. To test the server use netcat or run the netcat.bash <esp32-ip> script with the ESP32's ip address.
  3. For a client to exit just type exit on the client end, the server will perform all the necessary cleanup.

NOTE: Both the server and the netcat.bash script use the port 3000. To change the listening port kindly alter the port at server.h.

TODO:

  1. Make client connection exit after timer.
  2. Update the script to make a HTTP server.
  3. Setup a reverse proxy for the server.

About

Developed a TCP server using ESP32 and BSD sockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published