Android Programming Press on the image to return to the main documentation page.

VBWep

Written by VB1992

List of types:

VBConnect

VBConnect


Permissions:

android.permission.CHANGE_NETWORK_STATE
android.permission.WAKE_LOCK
android.permission.UPDATE_DEVICE_STATS
android.permission.ACCESS_NETWORK_STATE
android.permission.CHANGE_WIFI_STATE
android.permission.INTERNET
android.permission.ACCESS_WIFI_STATE

Events:

None

Members:


  BSSID As String [read only]

  cWEP (wepSSID As String, wepPASS As String)

  GetWifiList As List

  intToIp (i As Int) As String

  IPADDRESS As String [read only]

  mac As String [read only]

  readWepConfig

  RemoveAllSavedNetworks

  SupplicantState As android.net.wifi.SupplicantState [read only]

  weconnected As String

Members description:

BSSID As String [read only]
Return a wifi BSSID as STRING
cWEP (wepSSID As String, wepPASS As String)
Connect to the given WEP network ssid with the password.
No quotes or backslashes needed.
wepSSID:
wepPASS:
GetWifiList As List
Return a List of the names of available WIFI Spots.
intToIp (i As Int) As String
IPADDRESS As String [read only]
Return a wifi IP ADDRESS as INT
(not sure if this works)
mac As String [read only]
Return a wifi mac address as STRING
readWepConfig
readWepConfig()
displays info to the b4a debug log window
RemoveAllSavedNetworks
Removes all saved networks on device
Good when you want to reset wifi configurations
WARNING: Will remove all passwords of saved wifi locations
SupplicantState As android.net.wifi.SupplicantState [read only]
Return a STATUS STATE

ASSOCIATED - Association completed.
ASSOCIATING - Trying to associate with an access point.
COMPLETED - All authentication completed.
DISCONNECTED - client is not associated, likely to start looking for an access point
DORMANT - An Android-added state that is reported when a client issues an explicit DISCONNECT command.
FOUR_WAY_HANDSHAKE - WPA 4-Way Key Handshake in progress.
GROUP_HANDSHAKE - WPA Group Key Handshake in progress.
INACTIVE - Inactive state.
INVALID - A pseudo-state that should normally never be seen. SCANNING - Scanning for a network.
UNINITIALIZED - No connection.
weconnected As String
If connected:
Returns a String YES
If not connected:
Returns a String NO
Top