Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to reduce the size..... #1803

Open
bentwonk opened this issue Feb 19, 2025 · 3 comments
Open

Trying to reduce the size..... #1803

bentwonk opened this issue Feb 19, 2025 · 3 comments

Comments

@bentwonk
Copy link

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?

@tablatronix
Copy link
Collaborator

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?

@tablatronix
Copy link
Collaborator

tablatronix commented Feb 19, 2025

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

If you use platformio it has memory profiling

@bentwonk
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants