@MintyTrebor This is what I needed ! Thank you
If this the structure to use when I want to retrieve info during printing (like position, % of completion, speed, etc) or is there a other one ?
Latest posts made by ElevenJune
-
RE: C++ API for Duet 3 Mainboard 6HC
-
RE: C++ API for Duet 3 Mainboard 6HC
@MintyTrebor Thanks for your reply and your patience, I got a bit confused while reading the last messages !
This is what I am looking for. I don't have received my Duet card yet so I can't try the request, would you have a link showing the content of the Machine Model or an example of it please ? -
RE: C++ API for Duet 3 Mainboard 6HC
@MintyTrebor Thanks for your reply.
Is MachineModel a Json structure that will be returned with the request ? Or is it a something like a JavaScript class ? I don't understand. -
RE: C++ API for Duet 3 Mainboard 6HC
@MintyTrebor Thanks for your reply ! Unfortunately I will be programming in C++ so I cannot use this Machine Model. Do you know how I can access this type of information with the REST API to later use it in C++ please ?
-
RE: C++ API for Duet 3 Mainboard 6HC
@dc42 Thank you for your answer ! My question is regarding this request : https://github.com/Duet3D/DuetSoftwareFramework/blob/master/README.md#get-machinestatus
Do you know where I can find the status response that I will receive when using this request please ? -
RE: C++ API for Duet 3 Mainboard 6HC
Concerning the REST API, can I access a statut Response like the one proposed by RepRapFirmware please ? https://github.com/Duet3D/RepRapFirmware/wiki/JSON-responses
I can't find any info on this. -
RE: C++ API for Duet 3 Mainboard 6HC
@T3P3Tony I have a new question regarding a command
How does the M291 command (to display a message) works ?
If this command is in a G-Code being executed, how can I retrieve the message ? How will the REST API will notify me of this please ? -
RE: C++ API for Duet 3 Mainboard 6HC
@T3P3Tony Thanks a lot ! This is clear for me !
-
RE: C++ API for Duet 3 Mainboard 6HC
@T3P3Tony I have a question just to be sure I understood well. I will soon start the development of a control App and want to be sure before beginning to code.
I will develop a C++ software, can it communicate with the Duet 3 in these configurations :
-
Duet 3 6HC In Standalone mode. I plug a RJ45 cable between the Duet and a PC (no Raspberry Pi or other SBC is involved) and can use the HTTP Requests to communicate with the card (https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests). My software exchanges directly with RepRapFirmware
-
Duet 3 6HC connected to an Raspberry Pi 4 (a SBC) through SPI. I run the Duet Web Server on the Raspberry and can there use the RESTful API (https://github.com/Duet3D/DuetSoftwareFramework#rest-api) to communicate with the card. I can deploy my software on the Raspeberry Pi or on a more powerful PC (not a SBC) that I will connect to the Raspberry with RJ45. My software exchanges with Duet Web Server , like Duet Web Control exchanges with Duet Web Server
Is this right please ?
There is the third option where I can develop my own C++ API communicating with the card through SBC and use it as part of my C++ software. I do not plan on choosing this one.
I really thank you in advance !
-
-
RE: C++ API for Duet 3 Mainboard 6HC
@T3P3Tony Thank you for your clear answer ! I'll choose accordingly to the needs I will have. But I guess that not being restricted to the Raspberry Pi can be interesting on the long run.