I'm having similar problem with all of my project, which do not behave as they used to, and cannot find the functions in the latest SDK documentation. I assumed that Arduino tool (any version of it) would download the latest version of the ESP board and libraries (through boards manager), which in turn would have the latest SDK... However that does not seem to be the case
ArnieO wrote:This works for me:Code: Select all...
void setup()
{
WiFi.begin(ssid, pass);
WiFi.config(ip, gateway, subnet);
//Wifi connection
while (WiFi.status() != WL_CONNECTED) {
...
Similar code works for me, too.
But: The reference (file:///C:/Programme/Arduino/reference/arduino.cc/en/Reference/WiFiConfig.html) says:
Calling WiFi.config() before WiFi.begin() forces begin() to configure the WiFi shield with the network addresses specified in config().
You can call WiFi.config() after WiFi.begin(), but the shield will initialize with begin() in the default DHCP mode. Once the config() method is called, it will change the network address as requested.
Please suggest the solution
Thanks
Manoj