A TCP server programmed on ESPIDF using the wifi and lwIP APIs.
- Make a file called wifi_configs.h and put in the
maindirectory. Write the following data in it:
#define SSID "YOUR SSID"
#define PASSWORD "YOUR WIFI PASSWORD"- Compile the project using espidf and flash it to the ESP32
idf.py build flash - To test the server use netcat or run the
netcat.bash <esp32-ip>script with the ESP32's ip address. - For a client to exit just type
exiton 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 .
- Make client connection exit after timer.
- Update the script to make a HTTP server.
- Setup a reverse proxy for the server.