• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Problem with WiFiManager Example 2

Q&A Forum › Category: ESP8266 › Problem with WiFiManager Example 2
0 Vote Up Vote Down
Madhav Tenneti asked 6 years ago

Hello,

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.

Kind Regards

Madhav Tenneti.

Question Tags: Arduino IDE, ESP8266, WiFi Manager

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.