[GH-ISSUE #1803] Trying to reduce the size..... #1521

Open
opened 2026-02-28 01:30:23 +03:00 by kerem · 4 comments
Owner

Originally created by @bentwonk on GitHub (Feb 19, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1803

OK I am a ESP32 novice, I need what this library does, allow the non coders too easily connect an ESP32 to their home Wifi, but damn is this thing large, sure I want to get the local Wifi details , but then I want space to run my own code, fun things like Rest API, MQTT, logic, sensor polling and cleanup, OTA via website. So I took hacked away big chucks of the code I do not need, and yet it still takes 53% of my minimal Spiffs config, seems fat to me for something which only needs to get the users Wifi details, how do I reduce it further?

Originally created by @bentwonk on GitHub (Feb 19, 2025). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1803 OK I am a ESP32 novice, I need what this library does, allow the non coders too easily connect an ESP32 to their home Wifi, but damn is this thing large, sure I want to get the local Wifi details , but then I want space to run my own code, fun things like Rest API, MQTT, logic, sensor polling and cleanup, OTA via website. So I took hacked away big chucks of the code I do not need, and yet it still takes 53% of my minimal Spiffs config, seems fat to me for something which only needs to get the users Wifi details, how do I reduce it further?
Author
Owner

@tablatronix commented on GitHub (Feb 19, 2025):

There is a min branch I made to test this out, but theres not much you can do, the esp library has also grown.
Like you say I cant get it under a certain size. Even removing all strings. Try a different partition scheme, ota and spiffs is alot to ask for woth other libs, you using 4M?

<!-- gh-comment-id:2669532082 --> @tablatronix commented on GitHub (Feb 19, 2025): There is a min branch I made to test this out, but theres not much you can do, the esp library has also grown. Like you say I cant get it under a certain size. Even removing all strings. Try a different partition scheme, ota and spiffs is alot to ask for woth other libs, you using 4M?
Author
Owner

@tablatronix commented on GitHub (Feb 19, 2025):

I havent tried removing wifi ap scanning, have to manual enter wifi then..

If you use platformio it has memory profiling

<!-- gh-comment-id:2669535447 --> @tablatronix commented on GitHub (Feb 19, 2025): I havent tried removing wifi ap scanning, have to manual enter wifi then.. If you use platformio it has memory profiling
Author
Owner

@bentwonk commented on GitHub (Feb 22, 2025):

Thank you, will see if I can make any progress with platformio.

<!-- gh-comment-id:2676163472 --> @bentwonk commented on GitHub (Feb 22, 2025): Thank you, will see if I can make any progress with platformio.
Author
Owner

@Grey-Lancaster commented on GitHub (May 16, 2025):

Hey, I am just a lurker, but I use this library with platformio. It does not go into spiffs ???
https://github.com/Grey-Lancaster/IncuBuddy

<!-- gh-comment-id:2887833422 --> @Grey-Lancaster commented on GitHub (May 16, 2025): Hey, I am just a lurker, but I use this library with platformio. It does not go into spiffs ??? https://github.com/Grey-Lancaster/IncuBuddy
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1521
No description provided.