Been a while since i had time to look at ESPEasy again. Decided to start upgrading from release 20200410 to the latest.
Worked out fine for my ESP32 modules.
But trying to compile a new version for my 1M smartplugs leads to a very large increase of code size.
Compiled a version using custom.h on version 20200410 that compiled to 572kB to fit on my smartplugs
Now upgraded to version 20210114 using same custom.h, compiles to 699kB (!!) what has happened here?
My custom.h only includes C001,C005 and less than 5 plugins.
I could try to reverse engineer the issue, but maybe others have found similar issues and can provide the solution?
It looks like a lot of code is included although i did not specify more than a few plugins in custom.h
Relevant part of custom.h:
Code: Select all
#define BUILD_MINIMAL_OTA
#define WEBSERVER_CUSTOM_BUILD_DEFINED
#define WEBSERVER_CONFIG
#define WEBSERVER_CONTROLLERS
#define WEBSERVER_DEVICES
#define WEBSERVER_TOOLS
#define WEBSERVER_UPLOAD
#define WEBSERVER_ADVANCED
#define WEBSERVER_HARDWARE
#define USES_C001 // Domoticz HTTP
#define USES_C005 // MQTT
#define USES_P001 // Switch
#define USES_P240 // SmartPlug