This is a post without code as it is a theoretical question about a size increase when I try to do OTA.
...
My code has a total of 1,375,802 bytes that consume 69% space and 19% memory. So the problem is not lack of memory, but space.
I'm using it in an espcam where I configured it in the Arduino IDE for DEV Module Minimal SPIFFS (1.9Mb / 190 Kb of SPIFFS).
These sizes would suit my purpose well.
But when I went to test OTA, I saw the percentage being decremented in the serial monitor while the binary was being downloaded.
But the information I see changing on the serial monitor while the OTA is running is something like this: X% of 1,906,705 bytes......
And maybe that's why rebooting
Now, why 1,906,705 if the binary is 1,344 Kb when I look at the folder in Windows 10?
When I upload the binary to dropbox I also see its size = 1.3 Mb
Is this increase correct? is it the inclusion of some image required by the OTA process itself?
*I don't use SD CARD in ESPCAM, I use the pins for other purposes (GPIO's).
Grateful