-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files sent from Cura have the word "true" inside. #163
Comments
I discovered that the problem is in:
Becasue Cura send index = 0 sometimes. So I will implement some other manner of checking to receive a file. |
I just put a counter on the filename so I get filename+counter and I recevied 3 files, the last two with "true" inside. The first one is the real file. |
Here a raw and rudimentary but working code for the purpose. Only modified the function "handleUpload".
|
Thank you @Anyeos. Do you think you could send a pull request? |
I need to improve the code if not you will need to upload 3 times from the web to bypass the counter (that is some workaround for Cura). For now it is working as expected with Cura 4.8 only. I will improve it eventually but not today. |
Does this also continue to work with PrusaSlicer @Anyeos? |
Hello, all is working good for now with Cura, PrusaSlicer, etc. I improved the code a lot so it is working better. Can cancel, send file, print, cancel, print... it works good. The code is published on a fork that I made. If you have the time to study the code feel free to do so. I am very busy and cannot do a pull request or a patch. I implemented the network serial interface too so you can control your printer directly from a network as if connected directly to USB on computer. Ie.: you can use it on MatterControl too. |
That sounds interesting @Anyeos. Thanks for letting me know. |
When I send a file from the served webpage directly, it uploads correctly and have all the bytes inside (on the SDCard). But when I upload directly from Cura, the file size on the SD Card is only 4 bytes long and have the words "true" inside. So, all the file content is truncated with the word "true".
I think it is something related with Cura sending some command that WirelessPrinting missunderstands or maybe it is a bug.
The text was updated successfully, but these errors were encountered: