mattcar15 / bambu-connect

Connect to the stats, controls, and camera of your bambu printer
Other
38 stars 8 forks source link

additional examples using executeClient, error logging? #7

Open bdwilson opened 5 months ago

bdwilson commented 5 months ago

Appreciate your work on this module. I have some examples that would probably be helpful to others if you want to add them.

If you could advise on how I could get confirmation that command was executed successfully or not, I would love to use it. I am not a python person, so I tried to look at return codes but I'm assuming you haven't built that for executeClient yet or one would have to have a watcher to determine the response.

https://github.com/bdwilson/obico-bambu-octoprint/blob/main/bambuCmds.py

mattcar15 commented 1 month ago

Hey @bdwilson glad you're getting some use out of this! I can take a look and add some, I haven't sat down to make fixes / look at stuff in a while. Life has been pretty busy, but when I do the next round of changes I'll add a version for sure, thanks for sharing!

To answer your question, with the way the mqtt clients work there isn't exactly a "return" the way bambu has it, at least in the past, it's a pub sub setup so when you send it to over mqtt it simply consumes the events, but it doesn't emit any result that I've seen.