0
我想知道如果我有UUID并已成功连接到BLE设备,检索BluetoothGattCharacteristic的最佳方法是什么?例如,见下文。 TIA。获得BluetoothGattCharacteristic给定UUID
public BluetoothGattCharacteristic retrieveCharacteristic(UUID myUUID) {
BluetoothGattCharacteristic returnChar;
BluetoothGattService myService;
myService = mBluetoothGatt.getService(myUUID);
returnChar = myService.getCharacteristic(myUUID);
return returnChar;
}
非常感谢! – user3286543