Write data to USB HID using JavaScript, HTML5, or any cross platform language (supports Android)

前端 未结 5 484
太阳男子
太阳男子 2021-02-04 08:24

I\'ve written an UI in HTML5 and JavaScript. I chose this implementation so that I could share the same code between both Android Chrome and Windows 8 RT.

Now, my next ob

5条回答
  •  执念已碎
    2021-02-04 08:59

    There is one more alternative Web Socket.Create a web socket server which will access the usb device in local system.

    Connect your web server using Web Socket from Web Application.Web Socket has standard Api

    You can do something like this

      var host = "wss://localhost:25000/test";
    
      Websokcet ws = new WebSocket(host);
    

    You can create your web sokcet Server using RFC 6455

    for older browser you can think of http server as well.

提交回复
热议问题