Giter Club home page Giter Club logo

flutter_iot_wifi's Introduction

flutter_iot_wifi

Connect to an IoT access point using Android or iOS

Android Support

Currently requires Version >= Android Q

Android Permissions

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> !!! Android < 29 Required to scan !!!
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> !!! Android >= 29 Required to scan !!!

NOTE: Explicit requesting of permissions (e.g. with permission_handler) is required with newer versions.

iOS Support

Minimum iOS >= 11.0, iOS >= 13.0 required for prefix connect

iOS Entitlements

<key>com.apple.developer.networking.HotspotConfiguration</key>
<true/>
<key>com.apple.developer.networking.wifi-info</key>
<true/>

iOS Info.plist

<key>NSLocationWhenInUseUsageDescription</key>
<string>XXXXXX</string>

flutter_iot_wifi's People

Contributors

aliirabee avatar mousybusiness avatar

Stargazers

 avatar

Watchers

 avatar

flutter_iot_wifi's Issues

Connection process completed

Hello, your plugin works fine but FlutterIotWifi.connect returns true before being actually connected to the AP. How to know that the connection process is actually completed ?
thanks for your help.

Listing WIFI names returns NOT IMPLEMENTED in iOS

void _list() async {
if (await _checkPermissions()) {
FlutterIotWifi.list().then((value) => print("ssids: $value"));
} else {
print("don't have permission");
}
}
Returns:
2022-07-06 15:10:54.893712+1000 Runner[2709:249993] flutter: NOT IMPLEMENTED

not able to connect with wifi

I am getting this type of error-
help me out to connect wifi (ssid, password) in mobile.

E/flutter (23119): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method connect on channel flutter_iot_wifi)
E/flutter (23119): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (23119):
E/flutter (23119): #1 FlutterIotWifi.connect (package:smarty/features/home/presentation/views/flutter_iot_wifi.dart:14:23)
E/flutter (23119):
E/flutter (23119): #2 AccessPointWidget._connect. (package:smarty/features/home/presentation/views/wifi.dart:4753:65)
E/flutter (23119):
E/flutter (23119):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.