Go Down

Topic: WiFiManager is causing compile problems (Read 3023 times) previous topic - next topic


Hi, First here some background. I am using a MAC Pro laptop, with Arduino version 1.8.5 . This combination has been working well for years. Recently I have been working with a NodeMCU ESP8266 Module and all has been going well for a couple of weeks. A couple of days ago it stopped compiling anything that referred to the <WiFiManager.h> library.
I thought it may have been just my code, so I went back to basics and loaded the 'AutoConnect' example in the WiFiManager examples, but it still would not compile. After many hours of frustration and searching I decided to completely re-install Arduino IDE and the WiFiManager Library.
I removed Arduino and ALL my Libraries. Rebooted my laptop. Reinstalled Arduino. Re-installed the ESP8266 URL reference in the 'Preferences'. Re-installed the WiFiManager Library (From Tzapu). I left it at that to have a bare test bed.
When I loaded the 'AutoConnect' example and tried to compile (Verify) the sketch, it I get this error below:

Code: [Select]
Arduino: 1.8.5 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Build options changed, rebuilding all
Archiving built core (caching) in: /var/folders/cw/lq5s8qwx55d1xf0sdxv24s800000gn/T/arduino_cache_104021/core/core_esp8266_esp8266_nodemcuv2_CpuFrequency_80,VTable_flash,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_eb58b48fdf84b03a11476c37994da49f.a
libraries/WiFiManager/WiFiManager.cpp.o: In function `WiFiManager::waitForConnectResult()':
/Users/Poppy/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:712: undefined reference to `WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool'
libraries/WiFiManager/WiFiManager.cpp.o: In function `WiFiManager::startWPS()':
/Users/Poppy/Documents/Arduino/libraries/WiFiManager/WiFiManager.cpp:712: undefined reference to `WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Can someone help with this please.
Peter    :o


A new version of WiFiManager was just released today with, I believe, a fix for this issue. Try this:
  • Sketch > Include Library > Manage Libraries
  • In the "Filter your search" box, type "wifimanager".
  • Scroll down through the results until you see "WiFiManager by tzapu. Click on it.
  • If you have a version lower than 0.14.0 installed, click "Update".
  • Wait for the update to finish.
  • Click "Close".


Thanks Pert,
That seems to have been the problem.
I had loaded the newest version this morning. Must have been just before the latest version release.
Yes Haaa I'm back at coding again.



I just tried the solution presented by Pert, but it doesn't change anything... What else have I done wrong?

Best regards,

Go Up