title: write with Bluetooth Low Energy
body: <p>I am working in an app for Android that uses BLE. I want to write inside a characteristic of the device Service that I am connected to.</p>
  
  <p>My function is this:</p>
  
  <pre><code>public void writeCharacteristic(BluetoothGattCharacteristic characteristic,
                                            boolean enabled, String text) {
      if (mBluetoothAdapter == null || mBluetoothGatt == null) {
          Log.w(TAG, "BluetoothAdapter not initialized");
          return;
      }
  
  
      characteristic.setValue("7");
  
      boolean status = mBluetoothGatt.writeCharacteristic(characteristic);
  
  
  }
  </code></pre>
  
  <p>I do not why the value is not written inside the characteristic.
  I followed the steps in this link:
  <a href="http://programminganswer.com/18642/android-4-3-ble-how-to-write-characteristic.html" rel="nofollow">write with BLE</a></p>
  
  <p>anyone knows why my code does not work?</p>
  
  <p>Thank you very much.
  Regards</p>
  
  <p>P.D. apologies for my English.</p>