android.net.wifi.WifiInfo
Describes the state of any Wifi connection that is active or
is in the process of being set up.
Summary
Constants
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Constants
Implement the Parcelable interface
public
static
final
String
LINK_SPEED_UNITS
Link speed in Mbps
Constant Value:
"Mbps"
Public Methods
public
int
describeContents()
Implement the Parcelable interface
public
String
getBSSID()
Return the basic service set identifier (BSSID) of the current access point.
The BSSID may be
null
if there is no network currently connected.
Returns
- the BSSID, in the form of a six-byte MAC address:
XX:XX:XX:XX:XX:XX
Map a supplicant state into a fine-grained network connectivity state.
Parameters
suppState
| the supplicant state |
public
int
getIpAddress()
public
int
getLinkSpeed()
public
int
getNetworkId()
Each configured network has a unique small integer ID, used to identify
the network when performing operations on the supplicant. This method
returns the ID for the currently connected network.
Returns
- the network ID, or -1 if there is no currently connected network
public
int
getRssi()
Returns the received signal strength indicator of the current 802.11
network.
This is not normalized, but should be!
Returns
- the RSSI, in the range ??? to ???
public
String
getSSID()
Returns the service set identifier (SSID) of the current 802.11 network.
If the SSID is an ASCII string, it will be returned surrounded by double
quotation marks.Otherwise, it is returned as a string of hex digits. The
SSID may be
null
if there is no network currently connected.
Return the detailed state of the supplicant's negotiation with an
access point, in the form of a
SupplicantState object.
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.
public
void
writeToParcel(Parcel dest, int flags)
Implement the Parcelable interface