public class AccessPoint extends Object
This class is used within the XBee Java Library to list the access points and connect to a specific one in the Wi-Fi protocol.
| Constructor and Description |
|---|
AccessPoint(String ssid,
WiFiEncryptionType encryptionType)
Class constructor.
|
AccessPoint(String ssid,
WiFiEncryptionType encryptionType,
int channel,
int signalQuality)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChannel()
Returns the operating channel of the access point.
|
WiFiEncryptionType |
getEncryptionType()
Returns the encryption type of the access point.
|
int |
getSignalQuality()
Returns the signal quality with the access point in %.
|
String |
getSSID()
Returns the SSID of the access point.
|
void |
setChannel(int channel)
Sets the new channel of the access point.
|
void |
setSignalQuality(int signalQuality)
Sets the new signal quality with the access point.
|
String |
toString() |
public AccessPoint(String ssid, WiFiEncryptionType encryptionType)
AccessPoint with the given parameters.ssid - The SSID of the access point.encryptionType - The encryption type configured in the access
point.IllegalArgumentException - if ssid.length < 0.NullPointerException - if ssid == null or
if encryptionType == null.AccessPoint(String, WiFiEncryptionType, int, int),
WiFiEncryptionTypepublic AccessPoint(String ssid, WiFiEncryptionType encryptionType, int channel, int signalQuality)
AccessPoint with the given parameters.ssid - The SSID of the access point.encryptionType - The encryption type configured in the access
point.channel - Operating channel of the access point.signalQuality - Signal quality with the access point in %.IllegalArgumentException - if ssid.length < 0 or
if channel < 0 or
if signalQuality < 0 or
if signalQuality > 100.NullPointerException - if ssid == null or
if encryptionType == null.AccessPoint(String, WiFiEncryptionType),
WiFiEncryptionTypepublic int getChannel()
setChannel(int)public WiFiEncryptionType getEncryptionType()
WiFiEncryptionTypepublic int getSignalQuality()
setSignalQuality(int)public String getSSID()
public void setChannel(int channel)
channel - The new channel of the access point.getChannel()public void setSignalQuality(int signalQuality)
signalQuality - The new signal quality with the access point.getSignalQuality()© Copyright 2014 - 2019 Digi International Inc. All rights reserved.