【问题标题】:Why does BluetoothManager.OpenGattServer() always return null on my Nexus 7?为什么 BluetoothManager.OpenGattServer() 在我的 Nexus 7 上总是返回 null?
【发布时间】:2014-04-10 07:40:13
【问题描述】:

我正在尝试让本教程适用于我的 Nexus 7 (2012),它使用 BluetoothGattServer Android APIs-http://www.jayconsystems.com/tutorial/android_ble_nrf8002/ 运行 cyanogenMod(因此它具有 BT LE)-@

但是,设置 GattServer 不起作用,并且始终返回 null。

之后:

gattServer = bluetoothManager.openGattServer(
                    getApplicationContext(), mBluetoothGattServerCallback);

gattServer 始终为空。关于为什么会这样的任何想法?

【问题讨论】:

标签: android bluetooth-lowenergy gatt


【解决方案1】:

我想这是因为 Nexus 7(2012 版)不支持蓝牙 LE,因为它内部有蓝牙 3.0 无线电。

不过,2013 Nexus 7 确实支持蓝牙 LE。

【讨论】:

    猜你喜欢
    • 2011-12-08
    • 2014-09-12
    • 2019-09-18
    • 2014-09-02
    • 2015-02-27
    • 2021-01-10
    • 1970-01-01
    • 2011-04-16
    • 1970-01-01
    相关资源
    最近更新 更多