title: how transferring data to connected bluetooth LE device
body: <p>I connected to a bluetooth LE device with below instructions and samples:
  <a href="https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#getService(java.util.UUID)" rel="nofollow noreferrer">https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#getService(java.util.UUID)</a></p>
  
  <p><a href="https://github.com/googlesamples/android-BluetoothLeGatt" rel="nofollow noreferrer">https://github.com/googlesamples/android-BluetoothLeGatt</a></p>
  
  <p>but i have no idea how i can send data (hexa code) to ble device,
  can anyone help me?
  does below code send data to device :</p>
  
  <pre><code>BluetoothGattDescriptor descriptor = characteristic.getDescriptor(
  UUID.fromString(SampleGattAttributes.CLIENT_CHARACTERISTIC_CONFIG));
  int hexaCode =Integer.parseInt("7c",16);
  descriptor.setValue( 
  ByteBuffer.allocate(4).putInt(hexaCode).array());
  mBluetoothGatt.writeDescriptor(descriptor);
  </code></pre>