gpt4 book ai didi

android - 为什么 BluetoothManager.OpenGattServer() 在我的 Nexus 7 上总是返回 null?

转载 作者:行者123 更新时间:2023-11-29 01:43:21 25 4
gpt4 key购买 nike

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

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

在此之后:

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

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

最佳答案

我想这是因为 Nexus 7(2012 版)不支持蓝牙 LE,因为它内置了蓝牙 3.0 radio 。

但是,2013 年的 Nexus 7 确实支持低功耗蓝牙。

关于android - 为什么 BluetoothManager.OpenGattServer() 在我的 Nexus 7 上总是返回 null?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22981669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com