We develop an iot door access control system with ESP8266 on Platfromio IDE. You can see all our works on esp-rfid GitHub repository. We want to use ota updates on our systems but the code cover almost half of the memory sometimes bigger then half. If the code cover bigger than half of the memory we can't use ota update. How we can reduce code size?
Thank for your answers.
You can find the code from there.
The build results:
DATA: [==== ] 43.4% (used 35592 bytes from 81920 bytes)
PROGRAM: [===== ] 48.6% (used 507732 bytes from 1044464 bytes)