title: How to get notifications for characteristics from several services with RxBleAndroid
body: <p>As the title says, I'm trying to get notifications for characteristics from different services.</p>
  <p>However, it seems that only the notifications for characteristics from the first service that was discovered are working.</p>
  <p>I'm new to both BLE and this library so maybe I'm doing something wrong here, but basically here's what I'm doing:</p>
  <ol>
  <li>Discover all services</li>
  <li>For each service, discover all characteristics</li>
  <li>For each characteristic, read the descriptor and the value</li>
  </ol>
  <p>After reading the value, I set up the notifications for the characteristics' UUIDs I'm interested in as explained on the readme from the library here <a href="https://github.com/Polidea/RxAndroidBle#change-notifications" rel="nofollow noreferrer">https://github.com/Polidea/RxAndroidBle#change-notifications</a></p>
  <p>I created a method to set up the notifications which looks like this:</p>
  <pre><code>public void setUpNotification(@NonNull String descriptorString, @NonNull UUID characteristicUUID) {
      Disposable notificationDisposable = rxBleConnection.setupNotification(characteristicUUID)
              .doOnNext(notificationObservable -&gt; {
                      Log.v(TAG, &quot;setUpNotification # &quot; + descriptorString + &quot;, &quot; + characteristicUUID);
              })
              .flatMap(notificationObservable -&gt; notificationObservable)
              .subscribe(
                      bytes -&gt; {
                          Log.v(TAG, &quot;setUpNotification # &quot; + descriptorString + &quot;=&quot; + Arrays.toString(bytes));
                          handleNotification(descriptorString, bytes);
                      },
                      throwable -&gt; {
                          Log.e(TAG, &quot;setUpNotification # &quot; + descriptorString + &quot;, Error: &quot; + Exceptions.toString(throwable));
                      }
              );
      disposables.add(notificationDisposable);
  }
  </code></pre>
  <p>I can see in the logs that the notifications are set up for all the characteristics needed, but I'm only receiving the notifications for the characteristics from the first service of the loop. If I skip the notification set up for the first service, I receive only notifications from the second service, but not the third one. I have to get notifications for characteristics from all 3 services but so far I could not manage to make it work.</p>
  <p>I did a bit of research but could not find any example showing how to subscribe to notifications for characteristics from different services, so any help would be greatly appreciated!</p>