Google Chrome Extension serial port on website

后端 未结 2 1476
感情败类
感情败类 2020-12-29 12:24

I use chrome.serial to communicate with device on COM port and i need provide basic api for javascript on my web-site. First try was with content_script + messaging, but i c

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 13:10

    You can solve this by a chrome extension to support Content Scripts and packaged app for serial port communication with External Message Communication

    Fetch your Extension Id's using management API and establish connection for single message communication.

    On Message External is fired when a message is sent from another extension.

    References

    • Content Scripts
    • Serial API
    • Packaged APP
    • Chrome Extensions
    • Management API
    • Extension API

提交回复
热议问题