-->
Page 2 of 2

Re: file.read() stops at string.char(255)

PostPosted: Thu Jan 08, 2015 2:16 pm
by Markus Gritsch
But there's nothing special about it, since file.read() is working.

Use my uploader_bin.py script (viewtopic.php?f=22&t=913#p5755) to transfer the .png from the attachment to the ESP, and the regular uploader.py to upload the srv.lua. The file.read() call in line 45 reads up to 1024 bytes per invocation.

Re: file.read() stops at string.char(255)

PostPosted: Thu Jan 08, 2015 4:15 pm
by alonewolfx2
Markus Gritsch wrote:But there's nothing special about it, since file.read() is working.

Use my uploader_bin.py script (viewtopic.php?f=22&t=913#p5755) to transfer the .png from the attachment to the ESP, and the regular uploader.py to upload the srv.lua. The file.read() call in line 45 reads up to 1024 bytes per invocation.

its working except on off button. its crashing when press on or off button.
Edit : its working now. i use file.format() and upload again.