I am using an Android application using BLE Api (SDK 18) and I have a problem that the data transfer process is delayed very slowly. This is my magazine.
03-12 16: 20: 05.121: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 06.272: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 06.972: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 08.254: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 10.055: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 11.257: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 12.478: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 14.250: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 14.960: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 16.242: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 16.402: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 20.225: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 20.526: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 24.219: D / Bluetooth Gatt (13578): onCharacteristicWrite () - Device = ... UUID = ... Status = 0
03-12 16: 20: 25.360: D / Bluetooth Gatt (13578): writeCharacteristic () - uuid: ...
03-12 16: 20: 27.222: D/BluetoothGatt (13578): onCharacteristicWrite() - Device =... UUID =... Status = 0
, , onCharacteristicWrite, , onCharacteristicWrite .
Android, , , , .
:
private final BluetoothGattCallback mGattCallback = new BluetoothGattCallback() {
......
@Override
public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
mSending = false;
}
};
private void writeCharacteristic() {
.....
mGattCharacSetIntensity.setValue(data);
mGattCharacSetIntensity.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
mBluetoothGatt.writeCharacteristic(mGattCharacSetIntensity);
return;
}
EDIT: iPhone ( BLE AppStore), BLE ( 0,5 ), . SPEED UP Android BLE?
EDIT: WriteType BluetoothGattCharacteristic WRITE_TYPE_NO_RESPONSE, , Android writeCharacteristic CallBack, , lood, Android - ( 3 ).