private boolean writeToCharacteristic(BluetoothGattCharacteristic charc,byte[] data){
  charc.setValue(data);
  boolean result=mGattClient.writeCharacteristic(charc);
  if (result) {
    Log.d(TAG,"Wrote to characteristic: " + charc.getUuid() + ", data: "+ Arrays.toString(data));
  }
 else {
    Log.e(TAG,"Write failed to characteristic: " + charc.getUuid() + ", data: "+ Arrays.toString(data));
  }
  return result;
}

private boolean writeToCharacteristic ( BluetoothGattCharacteristic charc , byte [ ] data ) { charc . setValue ( data ) ; boolean result = mGattClient . writeCharacteristic ( charc ) ; if ( result ) { Log . d ( TAG , "Wrote to characteristic: " + charc . getUuid ( ) + ", data: " + Arrays . toString ( data ) ) ; } else { Log . e ( TAG , "Write failed to characteristic: " + charc . getUuid ( ) + ", data: " + Arrays . toString ( data ) ) ; } return result ; }
write to a oad characteristic
