probonopd / WirelessPrinting

Print wirelessly from Cura, PrusaSlicer or Slic3r to your 3D printer connected to an ESP8266 or ESP32 module
352 stars 65 forks source link

Implement download #89

Closed GMagician closed 5 years ago

GMagician commented 5 years ago

Address #78

probonopd commented 5 years ago

When I click on the download link i get the correct file size and MIME type, but then it crashes the sketch, which is rebooting the ESP.

probonopd commented 5 years ago

We could also send a header with the correct file name.

GMagician commented 5 years ago

the problem may be: 1) file closed too early 2) send will not return untill all done raising wd

probonopd commented 5 years ago

Unfortunately it is still crashing.

probonopd commented 5 years ago

Maybe the internal watchdog will trigger a force reset because it thinks something is stuck?

GMagician commented 5 years ago

I splitted read by 1Kb chunks...

probonopd commented 5 years ago

That is doing the trick :+1: downloading at 20 KB/sec

GMagician commented 5 years ago

No I was adding filename

probonopd commented 5 years ago

Maybe we should keep [WIP] in the title of PRs until they are ready for being merged. Some projects do this

GMagician commented 5 years ago

Now its completed!

probonopd commented 5 years ago

It works, and it is also much faster now :+1:

probonopd commented 5 years ago

Continues in https://github.com/probonopd/WirelessPrinting/pull/92

GMagician commented 5 years ago

yes 2kb x chunk