8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccdba4e commit 94a531cCopy full SHA for 94a531c
examples/esp8266/WebSocketClientOTA/python_ota_server/main.py
@@ -55,15 +55,15 @@ async def binary_send(websocket, fw_file):
55
with open(fw_file, "rb") as binaryfile:
56
57
while True:
58
- chunk = binaryfile.read(2048)
+ chunk = binaryfile.read(4096)
59
if not chunk:
60
break
61
try:
62
await websocket.send(chunk)
63
except Exception as exception:
64
Logger.exception(exception)
65
return False
66
- time.sleep(0.2)
+ asyncio.sleep(0.2)
67
68
69
def version_checker(name, vdev, vapp):
0 commit comments