chrome.serial在chrome打包应用程序中不可用

chrome.serial not available in Chrome packaged application

本文关键字:chrome serial 应用程序      更新时间:2023-09-26

我正在用Arduino串行连接构建一个Chrome打包的应用程序。类似于Erik Kay和Mihai Parparita在最新的谷歌I/O、Chrome应用程序的下一次进化中所展示的内容。

我在操作系统上使用最新的Canary版本(23.01254.0);X 10.8(山狮)。

但是,"chrome"对象缺少"serial"成员。

manifest.json:中缺少"串行"权限

  "permissions": ["serial"]

我已经成功地从一个专为使用arduino而设计的打包插件连接到串行,但编译代码需要一个服务器。

然后Chrome插件在这里:

https://github.com/DecodedCo/ArduinoInTheBrowser