作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 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/
我正在尝试在我的应用程序中创建一个 gattserver,因此它可以充当外围设备。首先,我注意到我为中央(客户端)编写的代码无法连接到服务器(BluetoothGattCallback 方法 onCo
我正在尝试使用 BluetoothGattServer Android APIs- http://www.jayconsystems.com/tutorial/android_ble_nrf8002/
我是一名优秀的程序员,十分优秀!