public class AccessPoint extends Object
Constructor and Description |
---|
AccessPoint(String ssid,
byte[] bssid,
float rssi,
int channel,
SecurityMode securityMode,
WPSMode[] wpsModes)
Constructs a Wi-Fi Access Point instance.
|
AccessPoint(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 ). |
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(String ssid)
Sets the Service Set IDentification (SSID) of the network.
|
public AccessPoint(@Nullable 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(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 String getSSID()
null
if not set.public WPSMode[] getWPSCapabilities()
public void setSecurityMode(@Nullable SecurityMode securityMode)
SecurityMode
).securityMode
- the access point security mode or null
.