-2

The RxAndroidBle examples provides an example for how to perform a write after a read, but nothing about a read after a write. I tried to follow the procedure for performing a write after a read, but for my use case, but the flatMap where I perform a write returns an Observable with byte, so I can't access RxBleConnection

PushingIt
  • 1
  • 1

1 Answers1

0

After you .establishConnection(), insert .doOnNext( connection -> savedConnection = connection) and use the savedConnection for future operations.

Don't forget to .dispose() when done to release the connection (and also set savedConnection = null).

Robert Lewis
  • 1,847
  • 2
  • 18
  • 43