Post your best Lua script examples here

Load binary file - how would you prefer?

2
22%
0
N/A
2
22%
0
N/A
1
11%
1
11%
3
33%
User avatar
By Hoksmur
#7173
Markus Gritsch wrote:But this script only works for very short files which fit in a single payload, doesn't it?

Yes. I wrote it 'just for fun' and add recommendation and regards to you and ThomasW. :)
I didn't catch how it works clean. :shock:
User avatar
By GeoNomad
#7810 In case anyone is interested, I have added a binary upload function to LuaLoader now.

http://benlo.com/esp8266/index.html#LuaLoader

It needs more testing and the error handling is probably not that robust yet, but it appears to get the job done.

I have tested it up to 20K with success.

Binary is encoded as ascii and loaded in 120 byte chunks with a checksum.

The address is also encoded in each for (sometime later) modifying a file without loading the entire contents, or recovering from serial errors by resending a block or two.

Peter