I think it is espruino code that is broken, I have updated patch gist, the issue is here
maybe it is not correct to send always up to BLE_NUS_MAX_DATA_LEN which is just maximum for the buffer
BTW I kind of stress tested WebIDE, uploaded ~250KB binary file to storage and upload was still pretty slow (minutes) but then download/view was much faster - like 10-20 seconds. So I guess WebIDE writes in 20 byte chunks but then reading back via notification use larger blocks. Or maybe it was writing to the flash that is so slow.
© Espruino, powered by microcosm.
Report a problem