B4A Library VBWep 1.0 Library (WEP)

NJDude

Expert
Licensed User
Longtime User

The networks found is nothing but the size of the ListView where I add the results (Line #149 in the Main module), I don't understand why you get zero.
 

Mahares

Expert
Licensed User
Longtime User
I made the below minor change, it started displaying the correct number of networks. Don't ask me why I made that change? I was not about to mess with NJDude or VB1992.
B4X:
'            For I = 0 To wfList.Size - 2
            For I = 0 To wfList.Size - 1  '8/2/12 Mahares change
 

synasir

Member
Licensed User
Longtime User
This library does not work for me. Changed the router to WEP and tried to connect using
mywifi.cWEP("CiscoXXXX","01234567890") but still did not work. Any ideas? Thanks.
 

synasir

Member
Licensed User
Longtime User
upload your code, and I can take a look at your project
(block out your ssid/wep password like you did in the uploaded project too)

Use the NJDUDE example also the same result. Even changed the phone to a Sony Experia from a Galaxy Y.


Connected to a previous router and tried to change to the Cisco WEP router using the app, did not connected. It disconnected my from my previous router and reconnected back to the previous router.

"Forget" the previous router and when running the app, "no wifi connection detected"
 

synasir

Member
Licensed User
Longtime User
Did you try the demo/example in the first post?
Because I tested that one myself.

All the SSID are listed but still cannot connect to the Cisco WEP router. Do you need to configure the router first?
 

synasir

Member
Licensed User
Longtime User
Still no go.


Changed router to TPLINK, does not work.
Changed router to Linksys, does not work.
Changed phone from Samsung to Sony, does not work.

Has anyone else got this working beside the author? :sign0163:

Getting very frustrated here!:BangHead:
 

vb1992

Well-Known Member
Licensed User
Longtime User
Could be coming down to a manifest permission problem...
What version of Android OS you running on the phones
I tested the apk, and works fine, thought I am not running ICS

check to make sure your demo project in the manifest file/editor has these permissions

B4X:
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE">
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE">
    </uses-permission>
    <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS">
    </uses-permission>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE">
    </uses-permission>
 
Last edited:

synasir

Member
Licensed User
Longtime User

The Samsung is running 2.3.6 while the Sony is running 2.1 (very old Sony)

It already has all this permission.

<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
 

jalle007

Active Member
Licensed User
Longtime User
I dont understand this whole idea about WiFi connecting and why is it so hard to do it

When i try to connect at my wirelles router which is set to WPA I got this :

Did not find a match for: [JalleNET ]
So we can't enable this SSID: [JalleNET ]

what dopes it mean? this library can't connect only to previously used wifi aftre it remembers it settings ?

Is it because of WPA ?
 

westingenieria

Active Member
Licensed User
Longtime User
Great library. Thank you for your work. Now i made a little modification (WPA+static IP) if someone has some interest i can upload the library...


I have a problem with scanning networks... i have duplicate SSID in my list :sign0148also in the log). I cant find the problem... Ill appreciate if someone can help me.

PD. sorry for my english, i know it sucks!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…