micropython/webrepl

Paste Buffer Size Issue with ESP8266

segallis opened this issue · 0 comments

When pasting large blocks of code in the webrepl browser window to the ESP8266 , the code is truncated to about 256 bytes due to the buffer size on the ESP8266. After living with the limitation I finally got around to trying to fix this problem. I made the following changes to webrepl.js and now the browser side inserts a 100 ms gap between chunks of 250 byte of pasted data, so all pasted data gets through. The gap can be adjusted if 100 ms is insufficient for some devices (100 ms appears for work for the ESP01 I have tried it on).

delay_on_paste.md