• 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

esp8266 wifimanager: only autoconfig if no ssid/password saved or hardware button pushed

Q&A Forum › esp8266 wifimanager: only autoconfig if no ssid/password saved or hardware button pushed
0 Vote Up Vote Down
Raymond Newman asked 3 years ago

I like the wifimanager but can’t figure out what to do after a power loss and esp8266 boots up log before wifi router does. Sometimes even my router hangs up.

I figured how to use a button pressed for 10 seconds then wifiManager.startConfigPortal(“HACS2”);

will force re-config. BUT WiFiManager wifiManager;
wifiManager.autoConnect(“HACS”);

will try to reconfig and if i put // on 2d line i cannot recofig even with button

3 Answers
0 Vote Up Vote Down
Steve Mercer answered 3 years ago

You will probably have to use interrupts. Check out the Multi-tasking the Arduino series of articles.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Ray.
Have you checked Steve’s answer?
Were you able to solve your problem?
Regards,
Sara

0 Vote Up Vote Down
Raymond Newman answered 3 years ago

I put wifimanager and start config portal in loop testing for config button. I seems to work

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] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

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

Copyright © 2013-2023 · 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.