WiFiForIoTPlugin class

Constructors

WiFiForIoTPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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
The equality operator.
inherited

Static Properties

onWifiScanResultReady Stream<List<WifiNetwork>>
no setter

Static Methods

connect(String ssid, {String? bssid, String? password, NetworkSecurity security = NetworkSecurity.NONE, bool joinOnce = true, bool withInternet = false, bool isHidden = false, int timeoutInSeconds = 30}) Future<bool>
Connect to the requested AP Wi-Fi network.
disconnect() Future<bool>
Disconnect from the currently connected network.
findAndConnect(String ssid, {String? bssid, String? password, bool joinOnce = true, bool withInternet = false, int timeoutInSeconds = 30}) Future<bool>
Scan for Wi-Fi networks and connect to the requested AP Wi-Fi network if found. Android only.
forceWifiUsage(bool useWifi) Future<bool>
Route network traffic via WiFi network.
getBSSID() Future<String?>
getClientList(bool onlyReachables, int reachableTimeout) Future<List<APClient>>
Get WiFi AP clients
getCurrentSignalStrength() Future<int?>
getFrequency() Future<int?>
getIP() Future<String?>
getSSID() Future<String?>
getWiFiAPPreSharedKey() Future<String?>
Get WiFi AP's password
getWiFiAPSSID() Future<String?>
Get WiFi AP SSID
getWiFiAPState() Future<int?>
Returns the WiFi AP State
isConnected() Future<bool>
Returns whether the device is connected to a Wi-Fi network. Note that this does not necessarily mean that the network is accessible.
isEnabled() Future<bool>
Returns whether the WiFi is enabled
isRegisteredWifiNetwork(String ssid) Future<bool>
isWiFiAPEnabled() Future<bool>
Returns whether the WiFi AP is enabled or not
isWiFiAPSSIDHidden() Future<bool>
Returns whether the WiFi AP is hidden or not.
loadWifiList() Future<List<WifiNetwork>>
registerWifiNetwork(String ssid, {String? bssid, String? password, NetworkSecurity security = NetworkSecurity.NONE, bool isHidden = false}) Future<bool>
Register a network with the system in the device's wireless networks. Android only.
removeWifiNetwork(String ssid) Future<bool>
setEnabled(bool state, {bool shouldOpenSettings = false}) → dynamic
Enable or Disable WiFi
setWiFiAPConfiguration(Object poWiFiConfig) → void
Set WiFi AP Configuaration
setWiFiAPEnabled(bool state) Future<bool>
Enable or Disable WiFi
setWiFiAPPreSharedKey(String psPreSharedKey) → dynamic
Set WiFi AP password
setWiFiAPSSID(String psSSID) → dynamic
Set WiFi AP SSID
setWiFiAPSSIDHidden(bool hidden) → dynamic
Set whether the WiFi AP is hidden or not
showWritePermissionSettings(bool force) → void
Request write permission