Bluetooth Low Energy : Android Gatt-Client connect to Linux Gatt Server
问题 I try to connect android to linux via bluetooth low energy GATT mode. There is a example code in Bluez: btgatt-server.c, I use it as server. The Android Side be as the Android official example:Connecting to a GATT Server. That is, use function BluetoothDevice::connectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback). After running, the Android part returned the connection be successful,(the parameter of BluetoothGattCallback::onConnectionStateChange be STATE_CONNECTED