-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello, we attempted to obtain Wi-Fi information (SSID and password) via Bluetooth, but the process takes a relatively long time and fails multiple times with timeout errors. The overall time cost is quite high. Is it possible to optimize this?
manager.command(by: device).getOptionsWithTypes(types) { (err, options, successTypes) in
guard let options = options else {
print("get options error: \(err!)")
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: {
self.getWIFIInfo(device: device, types: types)
})
return
}
guard let ssid = options.wifiInfo?.ssid,let password = options.wifiInfo?.password else {
return
}
self.wifiComplete?(ssid,password)
print("ssid: \(ssid),password: \(password)")
}
console log:
get options error: Error Domain=com.insta360.camerasdk.error Code=408 "timeout" UserInfo={NSLocalizedDescription=timeout}
Metadata
Metadata
Assignees
Labels
No labels