How to correctly use UUID.fromString method?
<p>I am trying to read/write these ble characteristics:</p>

<p><a href="https://i.stack.imgur.com/UgN7y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UgN7y.png" alt="enter image description here"></a></p>

<p>Right now, I'm trying to read <strong>AA01*</strong></p>

<p>I am using <a href="https://www.polidea.com/blog/RxAndroidBLE_the_most_Simple_way_to_code_Bluetooth_Low_Energy_devices/" rel="nofollow noreferrer">this library</a> to do it.</p>

<p>Here's my code:</p>

<pre><code>private void connectToSensorTag(RxBleDevice rxBleDevice) {
    rxBleDevice.establishConnection(getApplicationContext(), false)
            .doOnError(new Action1&lt;Throwable&gt;() {
                @Override
                public void call(Throwable throwable) {
                    int i = 0;
                }
            })
            .flatMap(rxBleConnection -&gt; rxBleConnection.readCharacteristic(UUID.fromString("AA01*")))
            .subscribe(new Subscriber&lt;byte[]&gt;() {
                @Override
                public void onCompleted() {
                    int i = 0;
                }

                @Override
                public void onError(Throwable e) {
                    int i = 0;
                }

                @Override
                public void onNext(byte[] bytes) {
                    int i = 0;
                }
            });
</code></pre>

<p>I get this error:</p>

<blockquote>
  <p>java.lang.IllegalArgumentException: Invalid UUID: AA01*</p>
</blockquote>

<p>I also tried the solutions from <a href="https://stackoverflow.com/questions/20325105/how-to-create-uuid-from-string-in-android">this similar question</a> but nothing works. Same error.</p>