We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the apple docs:
The property of canSendWriteWithoutResponse is only supported iOS 11+, so we walk around this problem with the following code:
case .withoutResponse: if #available(iOS 11.0, *) {//bug fix for iOS 11 return Observable<Characteristic>.deferred { [weak self] in guard let strongSelf = self else { throw BluetoothError.destroyed } return strongSelf.observeWriteWithoutResponseReadiness() .map { _ in true } .startWith(strongSelf.canSendWriteWithoutResponse) .filter { $0 } .take(1) .flatMap { _ in writeOperationPerformingAndListeningObservable(Observable.just(characteristic)) } }.asSingle() } else { return writeOperationPerformingAndListeningObservable(Observable.just(characteristic)) .asSingle() }
The text was updated successfully, but these errors were encountered:
Fixed in #243
Sorry, something went wrong.
kkosovsky
No branches or pull requests
According to the apple docs:
The property of canSendWriteWithoutResponse is only supported iOS 11+, so we walk around this problem with the following code:
The text was updated successfully, but these errors were encountered: