Closed SiddhantShah2001 closed 4 years ago
This guide seems to work so far, it's the only solution but sadly it doesn't pop up if you Google search the issue. Had to scour both GitHub repos and see if anybody else had this issue.
Hello, the last step, I did not understand it well, could you explain to me in which file the lines should be added. Thank you
You need to call espalexa.close() before you call the OnDemandConfig portal in your main sketch. Once it's done and it closes, you can espalexa.begin() again.
PROCEDURE: (Tested with Espalexa Version 2.6.0 & WiFi Manager Version 2.0.3-alpha)
STEP 1: Go to: My PC > Documents > Arduino > libraries > Espalexa > src < and Open up all three Files in the Folder named as: "Espalexa.h" "EspalexaDevice.h" "EspalexaDevice.cpp" in a Simple Text Editor or a Code Editor (I used Sublime Text).
STEP 2: In File: "Espalexa.h": Add Function:
before the line:
In File: "EspalexaDevice.h": Add Line:
at the End, after the Line:
In File: "EspalexaDevice.cpp": Add Function:
Just after the Function:
STEP 3: Last Step! Add Line:
just before you call the Config Portal. Also Remember to add a reset function at the end or atleast the begin function for Espalexa. i.e.:
That's It!