When using the Arduino IDE and the ESP8266 we declare a global WiFiServer before the setup() code like this:
Code: Select all
WiFiServer myServer(0); // to be changed later at run-time
Code: Select all
myServer.begin(myPort);
Unfortunately this does not work with the ESP32. If we do the same we got this error:
Code: Select all
no matching function for call to 'WiFiServer::begin(unsigned int&)'
Regards, Luis