Android Question MLwifi connectWiFiAP without confirmation dialog

mhk1368

Member
hi
I'm using the MLWifi400 library to switch WiFi connections and have now got that working correctly.
Is it possible to switch the connections silently, i.e. without the confirmation dialog (with its timeout)?
auto accept that.
 

agraham

Expert
Licensed User
Longtime User
Read the library thread for a discussion on this
 
Upvote 0

mhk1368

Member
Read the library thread for a discussion on this
Thanks bro

I have studied this issue, but I am looking for a solution for this issue, for example, making an auto-clicker that does this or a timer that will automatically do the click after such an action and....
Do you think these methods are possible?
 
Upvote 0

mhk1368

Member
I solved the problem using this code if anyone needs to use it. Of course, this is not a solution, but it can be an alternative way.

mhk:
Private Sub connectToWifi

    
    Private connectionStart As Long = DateTime.Now
    Private connectionTimeOut As Long = 300000
    Starter.wifi.EnableWifi(False)
    Starter.wifi.EnableWifi(True)
    If Starter.wifi.WifiSSID <> Starter.ServerWifiName Then
        Starter.wifi.disconnectWifiAP
    
        Starter.wifi.saveWifiAP(Starter.ServerWifiName , 2 , Starter.ServerWifiPassword,True ,30000)
        
        Do Until Starter.wifi.isWifiConnected
            Sleep(0)
            If DateTime.Now > connectionStart + connectionTimeOut Then
                Log("CONNECTION FAILED")
                Return
            End If
        Loop
        checkconnection="true"
        Log(Starter.wifi.ActiveNetworkTypeName)
    End If
End Sub
 
Upvote 0

mhk1368

Member
Has anyone found a solution for this problem or has there been an update so that we can specify whether the message is displayed or not?
 
Upvote 0

mhk1368

Member
hi
I could not find a solution for this problem using this library and had to use another library. And with the new library, my problem was solved. Thanks to all the friends who took the time to solve my problem.
 
Upvote 0
Top