Skip to content

Obtaining Wi-Fi information via Bluetooth takes too long. #69

@Mengzhihong

Description

@Mengzhihong

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions