标签: android bluetooth bluetooth-lowenergy
documentation for BluetoothGatt表示连接和断开连接的方法,但没有方法指示设备当前是否已连接。我正在寻找的iOS模拟版本为CBPeripheral.state。
BluetoothGatt
CBPeripheral.state
我是否必须通过BluetoothGattCallback方法自行跟踪连接站,或者我可以为此调用一种方法吗?
BluetoothGattCallback