Having a problem with an example from your Book on ESP8266, the WiFi Manager, I am trying the second example where custom parameters are set, In my case I am wanting to just set the I.P, not using the MQTT part.
The problem I am facing is that the file system retrieves the saved setting but always fails to connect when I am using a Static IP address by using the following….
WiFiManager wifiManager; //set config save notify callback wifiManager.setSaveConfigCallback(saveConfigCallback); //set static ip IPAddress _ip,_gw,_sn; _ip.fromString(static_ip); _gw.fromString(static_gw); _sn.fromString(static_sn);
wifiManager.setSTAStaticIPConfig(_ip, _gw, _sn);
However when I try using the DHCP version it works, suspecting an issue with the Current Arduino IDE I switched to 1.8.8, Still have problems while using the Set Static IP.
” wifiManager.setSTAStaticIPConfig(_ip, _gw, _sn);” is implimented from the wiFi Manager Example for setting a Static IP for the ESP8266
Your Insight into it might help, looking forward to an early reply.