PersWiFiManager icon indicating copy to clipboard operation
PersWiFiManager copied to clipboard

PersWiFiManager without SPIFFS

Open arlaor opened this issue 4 years ago • 5 comments

Hi @r-downing

What modifications should I implement in order to use your library without the use of SPIFFS, including the HTM pages directly in the sketch? The idea is to divide the LED control functions in one tab, OTAupdate in another tab and PersWiFiManager in another tab

arlaor avatar May 26 '20 14:05 arlaor

Take a look in the cpp file, there's an optional define for WIFI_HTM_PROGMEM . If you define that, it stores the whole html page in progmem and serves it from that, and you can modify that as needed

https://github.com/r-downing/PersWiFiManager/blob/master/PersWiFiManager.cpp

On Tue, May 26, 2020, 10:45 AM Arturo [email protected] wrote:

Hi @r-downing https://github.com/r-downing

What modifications should I implement in order to use your library without the use of SPIFFS, including the HTM pages directly in the sketch? The idea is to divide the LED control functions in one tab, OTAupdate in another tab and PersWiFiManager in another tab

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/r-downing/PersWiFiManager/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKJRO33ALTUJUP56YSMNSDRTPIXDANCNFSM4NKL54LQ .

r-downing avatar May 26 '20 14:05 r-downing

@r-downing So the idea would be to write inside the .cpp file all the htm code of my project plus the one found in the pages wifi.htm and index.htm of the folder data of your library?

arlaor avatar May 26 '20 21:05 arlaor

Hi @r-downing I have used the example basic_rest_api.ino and I have declared within PersWiFiManager.cpp the line #define WIFI_HTM_PROGMEM but there is no launch of the page that is inside the PersWiFiManager.cpp file Is there any extra line that needs to be added for proper operation?

arlaor avatar May 27 '20 14:05 arlaor

In your case you would want to add a link to the wifi.html in your main page like so:

https://github.com/r-downing/PersWiFiManager/blob/master/examples/basic_rest_api/data/index.htm#L24

On Wed, May 27, 2020, 10:52 AM Arturo [email protected] wrote:

Hi @r-downing https://github.com/r-downing I have used the example basic_rest_api.ino and I have declared within PersWiFiManager.cpp the line #define WIFI_HTM_PROGMEM but there is no launch of the page that is inside the PersWiFiManager.cpp file Is there any extra line that needs to be added for proper operation?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/r-downing/PersWiFiManager/issues/34#issuecomment-634714946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKJROYN47H7IZJL5STTK73RTUSJ3ANCNFSM4NKL54LQ .

r-downing avatar May 27 '20 16:05 r-downing

Hi @r-downing

https://github.com/r-downing/PersWiFiManager/blob/master/examples/basic_rest_api/data/index.htm#L24

But that would imply using SPIFFS and having in the sketch a page with all the 3 tabs mentioned and loading the wifi.htm page found in the flash space in one of the tabs?

arlaor avatar May 28 '20 21:05 arlaor