Hi,
I'm getting to the 32K limit of program size on a uno.
Yes I have a lot of thing in my program, including http server, and yes I could go for a bigger arduino mega.
But no... I want to optimize...
My idea : instead of storing static html string pieces, and concatenate with variables while printing, I was thinking about having a single, full static html file, including js to that fill the dynamic parts of the page with ajax, arduino replying to the ajax request with a much simpler structure.
... And, it's where I expect to gain on program size, send the static html/js file compressed in gzip.
The idea is to of course compress the static file before compilation, and store the compressed (binary) data.
Arduino send dumbly static data without being able to compress/decompress.
1/ Did someone already do this?
2/ Is there any way to simplify the compilation, like a precompiler operation that gzip an external html file, and include the binary compressed file in program space....
3/ Or simpler, a script that gzip a file, and convert the result in a copy/pastable string that I can put in the arduino source code.
Thanks,