Android Question Get the level of a Wifi signal

appie21

Active Member
Licensed User
Longtime User
Hello

I use the Dim WifiLoad As ABWifi module

If Try to Get the level of my wifi (I guess that it is my strenght of my wifi signal)

B4X:
    Dim Wifi As Boolean 
   
    Wifi = WifiLoad.ABLoadWifi()
    If Wifi = True Then
        Dim level As Int
        level = WifiLoad.ABGetCurrentWifiInfo.level
        Button1.Text = WifiLoad.ABGetCurrentWifiInfo.SSID & " Info " & level 'WifiLoad.ABGetCurrentWifiInfo.level
       
    End If
f

But every time I press the button I get as signal 0
What do I wrong?
 

kongc

Member
Licensed User
Longtime User
Hi,
I hesitated to send this post until I've no choice.
I tried to search the forum but I cannot find the duplicated question as above 1st post and the answers.
I'm having exactly the same issues.
Every time the button is pressed, always it is returned zero.

What is the answer please?

B4X:
Dim Wifi As Boolean
 
    Wifi = WifiLoad.ABLoadWifi()
    If Wifi = True Then
        Dim level As Int
        level = WifiLoad.ABGetCurrentWifiInfo.level
        Button1.Text = WifiLoad.ABGetCurrentWifiInfo.SSID & " Info " & level 'WifiLoad.ABGetCurrentWifiInfo.level
     
    End If
 
Upvote 0
Top