Can a blazor page be served by a Duet board?
-
I got the idea to white a util in Blazor and put it on the duet board. In a sub or parallel folder to the DWC.
I am thinking a blazor page, without any server side parts, querying the json structure and sending some G-Codes.
Is this possible withe current firmware and are there any limitations I should be aware of?
-
@fotomas Yes, you can in SBC mode by altering DuetWebServer but it is certainly not possible using a Duet in standalone mode.
-
@chrishamm Can you explan the issue with having it in stand alone mode? Is it not a just a webserver serving files?
A blazor site can be compleatly clientside. In this case it is my understanding that the only thing the DuetBoard needs to do is serve the files?
-
@fotomas Ah right, I was thinking about a hybrid Blazor page when I replied and that requires a C#/ASP.NET server which cannot run on the MCU of the Duet.
To be fair I've never built a plain Blazor web client so I cannot tell you what else would be needed to get it going. From a technical perspective a .NET client can access Duets both in standalone and SBC mode. For third-party .NET applications you can already use my DuetHttpClient .NET library but no idea if that is any good in a Blazor client application.
-
@chrishamm Thank you, it may be possible then, with some luck
I will do some experiments to see how far I get.