【问题标题】:cordova bluetooth plugin to enable ,scan and connect bluetooth科尔多瓦蓝牙插件启用,扫描和连接蓝牙
【发布时间】:2017-02-02 10:36:15
【问题描述】:

我添加了蓝牙插件 https://github.com/tanelih/phonegap-bluetooth-plugin 之后如何允许在我的应用程序中启用蓝牙并扫描附近的设备并连接到扫描的任何设备。在我的 index.html、index.js 编码中添加了哪些步骤。任何知道的人请帮助我。我是初学者。我想知道那个。

【问题讨论】:

    标签: android ios cordova bluetooth bluetooth-lowenergy


    【解决方案1】:

    小心它是一个旧插件。

    请查看此插件,了解更多文档和最新信息: https://github.com/don/BluetoothSerial

    【讨论】:

    • 当我打开我的应用程序时,我需要知道如何启用蓝牙、扫描和连接其他设备
    • 看文档,有很多方法,bluetoothSerial.list 用来扫描,bluetoothSerial.connect 用来连接。
    猜你喜欢
    • 2017-12-11
    • 1970-01-01
    • 1970-01-01
    • 2015-03-03
    • 2018-03-20
    • 2018-03-25
    • 1970-01-01
    • 1970-01-01
    • 2021-12-26
    相关资源
    最近更新 更多