public class AccessPoint
extends java.lang.Object
| Constructor and Description |
|---|
AccessPoint(java.lang.String ssid,
byte[] bssid,
float rssi,
int channel,
SecurityMode securityMode,
WPSMode[] wpsModes)
Constructs a Wi-Fi Access Point instance.
|
AccessPoint(java.lang.String ssid,
SecurityMode securityMode)
Constructs a Wi-Fi access point instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBSSID()
Gets the Basic Service Set IDentification (BSSID).
|
int |
getChannel()
Gets the channel of this access point.
|
float |
getRSSI()
Gets the Received Signal Strength Identification (RSSI) of this access point.
|
SecurityMode |
getSecurityMode()
Gets the security mode (
SecurityMode). |
java.lang.String |
getSSID()
Gets the Service Set IDentification (SSID) of the network.
|
WPSMode[] |
getWPSCapabilities()
Gets the Wi-Fi Protected Setup (WPS) modes supported by this access point.
|
void |
setSecurityMode(SecurityMode securityMode)
Sets the security mode (
SecurityMode). |
void |
setSSID(java.lang.String ssid)
Sets the Service Set IDentification (SSID) of the network.
|
public AccessPoint(@Nullable
java.lang.String ssid,
@Nullable
byte[] bssid,
float rssi,
int channel,
@Nullable
SecurityMode securityMode,
@Nullable
WPSMode[] wpsModes)
ssid - the access point SSID or null.bssid - the access point BSSID or null.rssi - the access point RSSI.channel - the access point channel.securityMode - the access point security mode or null.wpsModes - the access point WPS modes or null.public AccessPoint(java.lang.String ssid,
SecurityMode securityMode)
ssid - the access point SSID.securityMode - the access point security mode.public byte[] getBSSID()
public int getChannel()
public float getRSSI()
@Nullable public SecurityMode getSecurityMode()
SecurityMode).null if not set.@Nullable public java.lang.String getSSID()
null if not set.public WPSMode[] getWPSCapabilities()
public void setSecurityMode(@Nullable
SecurityMode securityMode)
SecurityMode).securityMode - the access point security mode or null.public void setSSID(@Nullable
java.lang.String ssid)
ssid - the SSID or null.