Polymer Platinum Bluetooth

2025 年 3 月 17 日 | 阅读 1 分钟

polymer platinum Bluetooth 元素用于与附近的蓝牙设备进行交互。

运行以下命令以在您的应用程序中使用 platinum bluetooth 并在您的目录中安装它。

platinum bluetooth

示例

它会将 platinum-bluetooth 的所有相关元素安装在 bower_components 文件夹下。

创建一个 index.html 文件并在其中添加以下代码,以查看 Polymer.js 中 platinum-bluetooth 元素的用法。

现在,创建另一个名为 platinum_bluetooth.js 的文件并包含以下代码

输出

platinum bluetooth 1
下一个主题推送消息