读取 USB 与串行接口设备的数据
让普通网页也能读取使用串行接口接入到电脑的设备的数据,例如电子秤的读数。
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"name": "读取 USB 与串行接口设备的数据",
"description": "让普通网页也能读取使用串行接口接入到电脑的设备的数据,例如电子秤的读数。",
"version": "1.0.5",
"manifest_version": 2,
"permissions": [
"serial",
"usb",
"hid",
{
"usbDevices": [
{
"vendorId": 2338,
"productId": 32772
}
]
}
],
"app": {
"background": {
"scripts": [
"./bundle/commons.js",
"./bundle/background.js"
]
}
},
"externally_connectable": {
"matches": [
"*://localhost:*/*",
"*://127.0.0.1:*/*",
"*://192.168.10.18:*/*",
"*://*.yi-express.com:*/*",
"*://*.yi-ex.com:*/*",
"*://*.yyox.com:*/*",
"*://*.eweus.com:*/*"
]
},
"minimum_chrome_version": "41"
}