javascriptserial-portprogressive-web-appsvirtual-serial-portcom-port

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?


Solution

  • 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