0
我是藍牙連接新手。我使用代碼 https://github.com/Fakher-Hakim/android-BluetoothLeGatt。當我嘗試 獲取信息什麼都沒有發生。Android藍牙獲得BluetoothGatt響應
public String response() {
if (mConnected) {
mBluetoothLeService.readCharacteristic(characteristica);
byte response[] = characteristica.getValue();
String respuesta = ReadBytes(response);
mBluetoothLeService.disconnect();
return respuesta;
} else {
return null;
}
}
我功能
private final ExpandableListView.OnChildClickListener servicesListClickListner
後執行怎樣才能獲得BluetoothDevice類的信息?