in rx-central-ble/src/main/java/com/uber/rxcentralble/core/CorePeripheral.java [173:183]
public Single<Integer> requestMtu(int mtu) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
return Single.error(new PeripheralError(PeripheralError.Code.MINIMUM_SDK_UNSUPPORTED));
}
final SingleSubject<Integer> scopedSubject = SingleSubject.create();
return scopedSubject
.doOnSubscribe(disposable -> processRequestMtu(scopedSubject, mtu))
.doFinally(() -> clearRequestMtuSubject(scopedSubject));
}