I have a question:
Is it possible to fix a local port during the TCP Client connection on ESP32 (Arduino IDE)?
My device must connect to a TCP server at a certain port, and this step is done without any problems using it:
Code: Select all
WiFiClient client;
if (!client.connect(host, port)) {
....
return;
}
Attached a screenshot taken from the server side where you can see that the remote port (local for esp32) changes dynamically.
maybe this methods of the class 'WiFiClient' can help me? but I can't find any documentation about it:
Code: Select all
int setSocketOption(int option, char* value, size_t len);
int setOption(int option, int *value);
thank you all for your help,
Pino