Skip to content
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

sendRequestToOctoprint() debugging #29

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

fmatray
Copy link
Contributor

@fmatray fmatray commented Jun 2, 2020

This PR is mainly to correct the issue #28. As discussed, there is no additional library dependency, so it should work and ESPxx and Arduino. I test on a MKR WIFI 1010.

I have only tested GET requests for the moment.

It's also add some debugs and optimisations.

- Resole issue chunkysteveo#28
- Reduce memory footprint with less variables
- Split header sending in sendHeader()
- Timeout run through all request
- Refactor main loop for a better readability

WARNING: Only tested with GET (Octoprint up and down with Haproxy, with printer up and down).
	 Not tested yet with POST commands.

Reduce variable memory for octoPrintPrintHeadRelativeJog() and remove a potential buffer overflow.

Remove unsued maxMessageLength and httpErrorBody
@fmatray
Copy link
Contributor Author

fmatray commented Jun 3, 2020

I tested POST commands with octoPrintPrintHeadRelativeJog() and octoPrintPrinterCommand().

It also included minor debugging and optimisations after several tests.

@chunkysteveo
Copy link
Owner

You're keeping busy with this update! Impressive! Let me take a look at all your hard work @fmatray !!

Thanks again!

@fmatray
Copy link
Contributor Author

fmatray commented Jun 4, 2020

I changed the delay during timeout, as the wifi driver crashs after a while.

@fmatray
Copy link
Contributor Author

fmatray commented Jun 6, 2020

This PR adds a part of the issue #30

…. Not really tested and I don't have a chamber.
@fmatray
Copy link
Contributor Author

fmatray commented Jun 6, 2020

This PR adds chamber features to get and set temperatures.
I can't really test cause I don't have a printer chamber at home.

It also adds printerBedTempHistoryTarget to struct printerBedCall.

@chunkysteveo
Copy link
Owner

Still want to have a play with all these updates first - i've not forgotten about this!!! :)

@fmatray
Copy link
Contributor Author

fmatray commented Sep 1, 2020

I have less time now but, please, play theses features and tell me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants