WifiAP class

A Wi-Fi access point found by the device during a scan.

EspProv.scan and EspProv.startScanWiFi return a list of them.

Constructors

WifiAP({String? bssid, required String ssid, required int rssi, bool active = false, bool private = true})
Creates an access point. Only ssid and rssi are required.
const

Properties

active → bool
A flag for the app's own use, false by default.
final
bssid → String?
MAC-style BSSID (aa:bb:cc:dd:ee:ff) of the access point, when known.
final
hashCode → int
A hash code consistent with operator ==: it uses bssid when there is one, and the other fields otherwise.
no setteroverride
private → bool
Whether joining the network needs credentials.
final
rssi → int
The received signal strength, in dBm, as measured by the device. Values closer to zero mean a stronger signal.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ssid → String
The network name (SSID), decoded as UTF-8.
final

Methods

compareTo(WifiAP other) → int
Orders access points by signal strength, strongest first.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Compares by bssid when both sides have one, since it uniquely identifies the physical AP a scan entry came from (unlike ssid, which several APs can share). Falls back to comparing the other fields when either side has no bssid.
override