Duet Web control interface using c# .net
Kotteri last edited by
I am using a CNC machine supports the Duet Web control. Instead of using the Duet Web control interface, I need to interact with the machine from a custom program developed in C#.
Would it possible to send the G-code and M commands from a c# application and get the response form the machine?
If possible could you send me a sample code of sending and receiving messages.
This is one for @chrishamm. It should be straightforward, because Duet Control Server is written in C#.
Veti last edited by
If using a Duet 3 + SBC it would be better to have the C# application running directly on the SBC since there are dedicate API libraries for .NET Core available (DuetAPI/DuetAPIClient on NuGet). There is no official library for remote operation available yet, so you will need to develop your own functions. Check out the documentation here for stand-alone and here for SBC HTTP requests.