isuPatches / android-wisefy

Wrapper around WifiManager and ConnectivityManager for Android
Apache License 2.0
312 stars 38 forks source link

Long connection to Access Point #189

Open LJOSS opened 1 year ago

LJOSS commented 1 year ago

Contact Details

ivanbestboy@gmail.com

Decrease time connection to AP

Hi Wisefy Team!

I have a question about connection to existing AP.

Im using this API


Wisefy.Brains(this).getSmarts().addNetwork(
                AddNetworkRequest.WPA2("SomeNetwork", "somePassword"),
                object : AddNetworkCallbacks {
                    override fun onFailureAddingNetwork(result: AddNetworkResult.Failure) {
                        println("onFailureAddingNetwork - $result")
                    }

                    override fun onSuccessAddingNetwork(result: AddNetworkResult.Success) {
                        println("onSuccessAddingNetwork - $result")
                    }

                    override fun onWisefyAsyncFailure(exception: WisefyException) {
                        println("onWisefyAsyncFailure e - $exception")
                    }
                }
)

And it works good! But sometimes this API working very slow(15-30 sec for connection)

Is it possible to decrease time connection to AP?

isuPatches commented 1 year ago

@LJOSS Thanks for the feedback! I will keep this issue open until I have a chance to investigate. Unfortunately, I have not been able to do much active work on this project for some time but hope to soon. I am always willing to review and accept pull requests.