I am trying to write data by using the blow code, successfully received on the target.
boolean status = mBluetoothGatt.writeCharacteristic(characteristic);
byte[] value = new byte[1];
value[0] = (byte)inputvalue;
characteristic.setValue(value);
if (value.length <20){
boolean status = mBluetoothGatt.writeCharacteristic(characteristic);
Log.d("send Status ******- : ", String.valueOf(status));
}
But, When I am trying the write the multiple times can't send the data. Also tried to send with a 2 second delay then, it is working fine. How can I do it with out a delay