public final class WiFiNetwork

  1. Object
  2. WiFiNetwork
One entry in a WiFi scan result. Immutable.

Constructors

public WiFiNetwork(String ssid, String bssid, int rssi, int frequency, WiFiSecurity security)

Methods

public String getSSID()Human-readable network name.
public String getBSSID()Access point MAC address (colon-separated lowercase hex).
public int getRssi()Received signal strength in dBm (negative values; closer to zero is stronger).
public int getFrequency()Channel frequency in MHz (e.g. 2412 for channel 1 on 2.4 GHz).
public WiFiSecurity getSecurity()Security mode advertised by the AP.

Inherited methods

Constructor details

WiFiNetwork

public WiFiNetwork(String ssid, String bssid, int rssi, int frequency, WiFiSecurity security)

Method details

getSSID

public String getSSID()
Human-readable network name. May be empty for hidden networks.

getBSSID

public String getBSSID()
Access point MAC address (colon-separated lowercase hex).

getRssi

public int getRssi()
Received signal strength in dBm (negative values; closer to zero is stronger). Typical range: -30 (excellent) to -90 (unusable).

getFrequency

public int getFrequency()
Channel frequency in MHz (e.g. 2412 for channel 1 on 2.4 GHz).

getSecurity

public WiFiSecurity getSecurity()
Security mode advertised by the AP. See WiFiSecurity.