Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can I access USB serial device(com5) in browser(web app) with javascript?

I am working on a project. we have our USB device. so how can I open(access) my USB(refer to attached to the image to see what kind of port and device is.) data in the web app? and which "javascript APIs" do I have to use?

like image 519
Tejas Chauhan Avatar asked Apr 13 '26 22:04

Tejas Chauhan


1 Answers

Yes.

If you want to use a serial port, you can use the Web Serial API.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Serial_API

like image 123
Brad Avatar answered Apr 16 '26 15:04

Brad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!