[英]Why does BluetoothManager.OpenGattServer() always return null on my Nexus 7?
I'm trying to get this tutorial working for my Nexus 7 (2012) running cyanogenMod (so it has BT LE) using BluetoothGattServer Android APis- http://www.jayconsystems.com/tutorial/android_ble_nrf8002/ 我正在尝试使用BluetoothGattServer Android APis在运行cyanogenMod(因此具有BT LE)的Nexus 7(2012)上运行本教程, http://www.jayconsystems.com/tutorial/android_ble_nrf8002/
However, setting up the GattServer is not working and always returns null. 但是,设置GattServer无效,并且始终返回null。
After this: 在这之后:
gattServer = bluetoothManager.openGattServer(
getApplicationContext(), mBluetoothGattServerCallback);
gattServer is always null. gattServer始终为null。 Any ideas on why that could be?
关于为什么会这样的任何想法?
I imagine it is because the Nexus 7 (2012 edition) doesn't support Bluetooth LE, as it has a Bluetooth 3.0 radio inside. 我想这是因为Nexus 7(2012版)不支持Bluetooth LE,因为它内部具有Bluetooth 3.0无线电。
The 2013 Nexus 7, however, does support Bluetooth LE. 但是,2013 Nexus 7确实支持Bluetooth LE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.