B4A Library Simple WIFI library

HotShoe

Well-Known Member
Licensed User
Longtime User
WiFi will normally be wlan0, so that looks correct.

Thanks.

---
It seems to work.

Thanks NJ, good to see ya man.

--- Jem
 

MikleS

Member
Licensed User
Longtime User
Hi HotShoe.
Great library
Please сheck connectToAP(cursel) method.
In versions 2.14 and 2.15 works perfectly.
In versions 2.16 and 2.17 is not working.
 

HotShoe

Well-Known Member
Licensed User
Longtime User
What android version, and does it not work on all devices? I haven't made any changes to that method in the last few updates.
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Hi HotShoe.
Great library
Please сheck connectToAP(cursel) method.
In versions 2.14 and 2.15 works perfectly.
In versions 2.16 and 2.17 is not working.

Can you tell me what kind of connection you are trying? is it wep, wpa, open, etc? I am having trouble finding a problem.

--- jem
 

rtek1000

Active Member
Licensed User
Longtime User
Hello,

How find 2.15 version?

Because I did update to 2.17 and now don't work anymore!

Using Android 4.4.2

Thank you!
 

Alisson

Active Member
Licensed User
Hello HotShoe.
I read the documentation.
How can do "forget" using function forget:

scan.forgetAP(int)

I need pass to Int, but what is the value?
I try zero, one and others. Not function.
You can help?
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Hello HotShoe.
I read the documentation.
How can do "forget" using function forget:

scan.forgetAP(int)

I need pass to Int, but what is the value?
I try zero, one and others. Not function.
You can help?

The Forget method uses the network ID number as described in the command help in the IDE. You can use the ListSavedNetworks method to get the netID numbers or get it from the scanned networks list.
 

HotShoe

Well-Known Member
Licensed User
Longtime User

Alisson

Active Member
Licensed User
Cool is use a feature to add protocol, ssid and password.
The user can pass the protocol, ssid, password and connect. Example:

AddAP(ssid,password,protocol)

I tested here your lib, good!

Thanks very much!!!
 

Alisson

Active Member
Licensed User
HotShoe, I did a test:

B4X:
Sub scanlist_ItemClick (Position As Int, Value As Object)
    Dim tmp As String
    Dim cap As String
    Dim parts() As String
   
    cursel = Position
    cap = scan.WifiCap(cursel)
   
    parts = Regex.Split(",",cap)
   
    ssid = parts(0)
    bssid = parts(1)
   
    cap = parts(2)
   
    connectpnl.BringToFront
   
    conssidlbl.Text = "SSID = " & ssid
    conbssidlbl.Text = "BSSID = " & bssid
   
    concaplbl.Text = "Capabilities = " & cap
   
    Dim ok As Boolean
   
    ok = scan.addAP("0","WPA2","pass123")
    If ok Then
    Msgbox("Connecting to " & ssid,"Information")
   
    Else
    Msgbox("Could not connect to " & ssid,"Information")
   
   
    End If
   
End Sub

The function to click and get the Position, put:

ok = scan.addAP("0","WPA2","pass123")

After forget the network1 and connect to network2.
I use the network2 to conect in network1, but not connect to network1.

HotShoe, what can I do?

I wait your feedback!

Thanks!
 

JohnC

Expert
Licensed User
Longtime User
When it does a scan, is there any way it can include any wifi "adapters" it sees, not just "Access Points"?

Meaning, I would like to see "client" devices, like other Android phones nearby in a given area - I believe these devices are related to as "Ad-Hoc" devices.

I do NOT need to connect to them, I just want to be able to read the signal strength of them.
 

Declan

Well-Known Member
Licensed User
Longtime User
Hi, I am running mlwifi-2.7 example on an tablet with Android V5.1
When I select the wifi device from the scan list, the "Connect / Close" screen is displayed.
But, it is unloaded before I have a chance to select the "Connect" Button.
 

HotShoe

Well-Known Member
Licensed User
Longtime User
I am no longer interested in programming and woul like to find someone that knows Java and B4A to take over this and other libraries. It isn't fair to the B4A community to abandon popular libs just because I am fighting programmers burn out. If you are interested, please tell me a bit about yourself via email to me at jem@mlsoft.org. I won't release the source to just anyone.

--- Jem
 

Davin

Member
Licensed User
Longtime User
Hi HotShoe.
Great library
Please сheck connectToAP(cursel) method.
In versions 2.14 and 2.15 works perfectly.
In versions 2.16 and 2.17 is not working.
do you stil have ver 2.14 or 2.15 ?

anyone ?

thanks
 

rtek1000

Active Member
Licensed User
Longtime User
Hello,

I'm sorry to hear that you can not continue in this library any more.

I would like to suggest that the source code be sent to @Erel.

We all know that the android app can be easily reversed.

And also the library, myself without knowing much I've been changing something even without having the source code.

You have done a great job, thank you very much.

 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…