I am using ESP32-S2 in Arduino IDE as TCP/IP server. how can i change the TCP data receive packet size ? it is currently 5760 bytes, I have seen this in Wireshark TCP SYN packet ?
I have tried changing config parameters in sdkconfig file, but didn't worked out.
The Arduino environment for ESP32 works on compiled configuration of ESP IDF framework. So, its not possible to change any ESP32 configuration in Arduino IDE.
There are 2 options to Change the configuration parameters.
Change the configuration in ESP IDF CMD terminal and copy the compiled object files to the Arduino library (it has problem, when version mismatch happens).
Use Espressif IDE for the development instead of Arduino IDE.(Configuration is quite simple )