We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AndroidCentral.connect()
1 parent 4e31a3c commit 79b4d41Copy full SHA for 79b4d41
Sources/AndroidBluetooth/AndroidCentral.swift
@@ -164,13 +164,13 @@ public final class AndroidCentral: CentralManager {
164
165
// wait for connection continuation
166
do {
167
- try await withCheckedThrowingContinuation { continuation in
+ try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, any Error>) in
168
Task {
169
// attempt to connect (does not timeout)
170
await storage.update { [unowned self] state in
171
-
+
172
// store continuation
173
- let callback = GattCallback(self)
+ let callback = GattCallback(central: self)
174
let gatt: BluetoothGatt
175
176
// call the correct method for connecting
0 commit comments