WiFiManager_Generic_Lite does not work with my Feather M0

I try to use the WiFiManager_Generic_Lite library on my Adafruit Feather M0 Board.

I tried to install this library inside the Arduino IDE - but when trying to also install the required dependencies, I get a 'no protocol' error.

Therefore I went for the installation without its dependencies - not knowing if something is missing or not.

Does anybody know what dependencies are necessary when this WiFiManager_Generic_Lite library is installed for intended usage on the Adafruit Feather M0 Board ?

And second question:

Under the File->Example Menu I find more than 10 examples - but which one to pick for the Adafruit Feather M0 Board ? (see screenshot for the choices):

Can somebody please give me step-by-step instructions on how to use this WiFiManager_Generic_Lite library - especially for usage on the Adafruit Feather M0 Board ?

My intended use-case is to have the WiFiManager_Generic_Lite create an Access-Point at first and then the user can enter his or her credentials (i.e. SSID and PW) and eventually the WiFiManager_Generic_Lite would switch to a WebServer mode (keeping the credeentials in Flash). I know that WiFiManager_Generic_Lite can do so - but I just fail miserably in finding the right configuration and library installs.

I advanced a tiny wee bit:

To make the WiFiManager_Generic_Lite library compile and download on an actual Adafruit Feather M0 Board, the following libraries are needed:

WiFiManager_Generic_Lite
WiFiWebServer
Functional-Vlpp
DoubleResetDetector_Generic
FlashStorage_SAMD
WiFi101

With those libraries, the default Code will compile and the download to the Adafruid Feather M0 Board works.

However, now I do not see the Access Point.

What is still wrong ??

Finally, using the Adafruit Feather M0, you must take care of the differnt pinout :

Please set the pins as follows - and by doing so your Access Point using the WiFiManager_Generic_Lite library will finally work.

void setup()
{
  // This is the only line of code that is Feather M0 WINC1500
  // specific, the rest is the same as for the WiFi101
  WiFi.setPins(8, 7, 4, 2);

  // ... the rest of whatever was there...
}

In addition, there is an issue with the Serial Monitor: It turned out that the WiFiManager_Generic_Lite library for some reason requires the Serial Monitor to be ON. With the following timeout set in SAMD_WiFi.ino (line 80), you can circumwent this issue:

Replace: while (!Serial); by while (!Serial && (millis() < 3000));

Now having done the above changes (i.e. pinout and SerialMonitor-timeout), the SAMD_WiFi code compiles and downloads correctly to my Adafruit Feather M0 Board.

However, there is one last issue that I don't know how to solve:

If I connect to this Access Point with a mobile Phone (iOS or Android) or also with my Mac, I do not get the settings HTML page if I go to the browser and type http://192.168.4.1 as stated on the WiFiManager_Generic_Lite manual.

What could be the reason why no settings page crops up with a working Access Point in place ??

I would really be able to make the WiFiManager_Generic_Lite library work with my Adafruit Feather M0. Any ideas ??

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.