0
我正在使用AltBeacon的android-beacon-library來獲取信標並獲取結果。要連接到此信標的GATT服務(配置信標),我需要Beacon的BluetoothDevice。是否有可能獲得BluetoothDevice?從AltBeacon的Beacon對象獲取BluetoothDevice用於GattConnection
我正在使用AltBeacon的android-beacon-library來獲取信標並獲取結果。要連接到此信標的GATT服務(配置信標),我需要Beacon的BluetoothDevice。是否有可能獲得BluetoothDevice?從AltBeacon的Beacon對象獲取BluetoothDevice用於GattConnection
找到了答案。
只需使用:
BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(beacon.getAddress());
很高興聽到你解決它! – davidgyoung