question

AshleyDavy-3723 avatar image
0 Votes"
AshleyDavy-3723 asked ·

Blazor and Web Serial Api

When will Blazor support Web Serial Api for use on the client side with WebAssembly? I have a need to communicate with a Com Port from the end users browser. I thought that since I had enabled the permission through chrome://flags/#enable-experimental-web-platform-features that I could use System.IO.Ports and then call SerialPort.GetPortName() to get a list of available Com Ports. When I make the call GetPortName() I get an exception. How can I get this to work with C# code / WebAssembly?

dotnet-aspnet-core-blazor
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

miwan2-msft avatar image
0 Votes"
miwan2-msft answered ·

Hi, @AshleyDavy-3723

As far as I know, it's unable to access SerialPort via Blazor WebAssembly. And I already post answer with same thread here. Please check.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.