wifi_connector 1.0.1 wifi_connector: ^1.0.1 copied to clipboard
Flutter plug-in for connecting to wifi.
wifi_connector_example #
Prerequisite #
-
iOS
-
Change development target to 11.0
-
Add hot spot configuration capability
-
-
Android
- Add wifi permissions
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.wonjerry.wifi_connector"> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> </manifest>
Usage #
-
Connect to public wifi
await WifiConnector.connectToWifi(ssid: ssid);
-
Connect to private wifi
await WifiConnector.connectToWifi(ssid: ssid, password: password);