Description
Hi guys,
I just pulled latest repo, just saw OTA has changed for better integration with IDE, that's pretty cool.
So I migrated my program to use new version of OTA. I was using old @igrr one on command line.
What I noticed despite the fact that I do not see ESP port in IDE (I'm on windows and already add lot's of problem with bonjour with Yun compatible board called Dragino, so I won't spend time on this, Command line + up array + enter to run python OTA script is okay for me),
Anyway, my return on this new version is that I miss more OTA than the old version. With old version I was missing about 1/5 OTA and with this version I'm missing about 4/5 (lot errors with "lmac.c" seen on Serial Debug)
I succeeded to decrease OTA errors reducing chunk size from 4096 to 1024 in python script and adding 5ms delay between each chunk. Seems better for me, far from ideal but better here are my changes.
chunk = f.read(1024)
if not chunk: break
try:
sys.stderr.write('.')
sys.stderr.flush()
connection.sendall(chunk)
# wait 5ms
time.sleep (0.005)
May be a chunk test/valid send from the node after each chunk received to tell python script to continue if okay or send back the chunk could solve more problems.
Anyway, excellent job guys, just my 2 cents ;-)
Cheers
Charles