From 20d40f08681e6db134b062f38d2f9bde7a391775 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Thu, 17 Aug 2017 16:50:40 +0300 Subject: [PATCH] fix OTA Fixes: https://github.com/espressif/arduino-esp32/issues/556 --- tools/espota.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/espota.py b/tools/espota.py index eb809943..e662e611 100755 --- a/tools/espota.py +++ b/tools/espota.py @@ -172,14 +172,14 @@ def serve(remoteAddr, localAddr, remotePort, localPort, password, filename, comm sys.stderr.flush() offset = 0 while True: - chunk = f.read(1460) + chunk = f.read(1024) if not chunk: break offset += len(chunk) update_progress(offset/float(content_size)) connection.settimeout(10) try: connection.sendall(chunk) - res = connection.recv(5) + res = connection.recv(10) except: sys.stderr.write('\n') logging.error('Error Uploading')