Может кто-нибудь сказать мне, как получить данные из Smartband в моем приложении для Android?
От onServicesDiscover Я не знаю, что делать ...
@Override
public void onServicesDiscovered(BluetoothGatt gatt, int status) {
super.onServicesDiscovered(gatt, status);
if (status == BluetoothGatt.GATT_SUCCESS) {
for (BluetoothGattService service : gatt.getServices()) {
Log.w("Service", service.getUuid().toString());
for (BluetoothGattCharacteristic characteristic : gatt.getService(service.getUuid()).getCharacteristics()) {
Log.e("Characteristic", characteristic.getUuid().toString());
}
}
}
}