All Projects → iwdael → WifiManager

iwdael / WifiManager

Licence: other
简化Android Wifi开发,已实现常用的功能,比如获取WiFi管理,WiFi列表,断开、清除或者连接WiFi。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to WifiManager

Connectivity
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Stars: ✭ 1,476 (+1009.77%)
Mutual labels:  wifi, wifi-network
Wi-Fi Study Public
The study resources of Wi-Fi protocols and resources.
Stars: ✭ 357 (+168.42%)
Mutual labels:  wifi, wifi-network
scale-network
SCaLE's on-site expo network configurations, wifi, tooling, and scripts
Stars: ✭ 13 (-90.23%)
Mutual labels:  wifi, wifi-network
Wifi Password
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Stars: ✭ 2,325 (+1648.12%)
Mutual labels:  wifi, wifi-network
Easy-HotSpot
Easy HotSpot is a super easy WiFi hotspot user management utility for Mikrotik RouterOS based Router devices. Voucher printing in 6 ready made templates are available. Can be installed in any PHP/MySql enabled servers locally or in Internet web servers. Uses the PHP PEAR2 API Client by boenrobot.
Stars: ✭ 45 (-66.17%)
Mutual labels:  wifi, wifi-network
wifi-pentesting-guide
WiFi Penetration Testing Guide
Stars: ✭ 105 (-21.05%)
Mutual labels:  wifi, wifi-network
wifisdk
Free WiFi Connect SDK
Stars: ✭ 28 (-78.95%)
Mutual labels:  wifi, wifi-network
network-interface
Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.
Stars: ✭ 24 (-81.95%)
Mutual labels:  wifi, wifi-network
Eduponics-Mini
MicroPython MQTT & code example for Eduponics mini ESP32 learning kit
Stars: ✭ 41 (-69.17%)
Mutual labels:  wifi
LibTeleinfo
Librairie Universelle Teleinformation (TIC)
Stars: ✭ 77 (-42.11%)
Mutual labels:  wifi
tuya-iotos-embeded-sdk-wifi-ble-bk7231t
TuyaOS Embedded SDK is designed to promote the development of smart products with BK7231T that enables communication over Wi-Fi and Bluetooth Low Energy (LE).
Stars: ✭ 32 (-75.94%)
Mutual labels:  wifi
rtl88x2bu-driver
Linux Kernel 4.15 and above compatible realtek driver for RTL8812BU/RTL8822BU chipset (Inamax/Edimax USB Wifi Adapters)
Stars: ✭ 36 (-72.93%)
Mutual labels:  wifi
lazyaircrack
Automated tool for WiFi hacking.
Stars: ✭ 301 (+126.32%)
Mutual labels:  wifi
RaspberryPi-Packet-Sniffer
An HTTP and HTTPS sniffing tool created using a Raspberry Pi
Stars: ✭ 79 (-40.6%)
Mutual labels:  wifi
madwifi
New repository: https://github.com/proski/madwifi
Stars: ✭ 16 (-87.97%)
Mutual labels:  wifi
anon-hotspot
On demand Debian Linux (Tor) Hotspot setup tool
Stars: ✭ 34 (-74.44%)
Mutual labels:  wifi
WifiBarcodeSample
Sample code for my article in DotNetCurry magazine on scanning barcodes. In this sample you can generate and scan QR codes that contain a Wi-Fi connection string
Stars: ✭ 13 (-90.23%)
Mutual labels:  wifi
realtek rtwifi
Realtek RTWIFI - RTL8XXXU mod
Stars: ✭ 32 (-75.94%)
Mutual labels:  wifi
hashcatbenchmark
Benchmark in Hashcat for diferents GPU's
Stars: ✭ 19 (-85.71%)
Mutual labels:  wifi
wirehack
Scripts for hacking through wireless network [WiFi]
Stars: ✭ 21 (-84.21%)
Mutual labels:  wifi

WifiManager

简化Android Wifi开发,已实现常用的功能,比如获取WiFi管理,WiFi列表,断开、清除或者连接WiFi。

特点

  • 根据信号强度排序
  • 连接或操作中的WIFI自动置顶
  • 自动刷新WIFI列表
  • 支持常见Wifi操作




概述

WifiManager主要是由IWifiManagerIWifi组成,IWifiManager中可实现三个接口,完成Wifi列表数据更新

Class

IWifiManager

方法 功能
isOpened() WIFI是否打开
openWifi() 打开WIFI
closeWifi() 关闭WIFI
scanWifi() 扫描WIFI。此方法为异步操作,扫描结果会通过接口回掉
disConnectWifi() 断开当前连接
connectEncryptWifi(IWifi wifi, String password) 通过密码,连接WIFI
connectSavedWifi(IWifi wifi) 连接已保存的WIFI
connectOpenWifi(IWifi wifi) 连接开放的WIFI
removeWifi(IWifi wifi) 清除已保存的WIFI
getWifi() 获取WIFI列表。此方法不建议使用,若是WIFI列表有变化会通过接口回调
setOnWifiConnectListener(OnWifiConnectListener listener) wifi连接状态变化监听
setOnWifiStateChangeListener(OnWifiStateChangeListener listener) wifi状态变化监听
setOnWifiChangeListener(OnWifiChangeListener listener) wifi列表变化监听。包含WiFi数目变化,WiFi状态变化等,用户只需要展示即可
destroy() IWifiManager不需要使用时,需销毁

IWifi

方法 功能
name() Wifi名称
isEncrypt() 是否加密
isSaved() 密码是否保存
isConnected() 是否连接
encryption() 加密类型描述,例如:WEP等
level() 信号强度
ip() 若当前WiFi连接,ip不为空
description() wifi描述
description2() wifi描述,含Ip

OnWifiChangeListener

方法 功能
onWifiChanged(List wifis) wifi列表,wifi所有变化都会通过此方法,只需要展示此列表即可

OnWifiConnectListener

方法 功能
onConnectChanged(boolean status) wifi是否连接

OnWifiStateChangeListener

方法 功能
onStateChanged(State state) wifi状态,例如:开启中,已开启,关闭中,已关闭

使用说明

1.获取IWifiManager

    IWifiManager.create(Context context);

2.销毁IWifiManager

    iWifiManager.destroy();

快速引入项目

合并以下代码到需要使用的Module的dependencies中。

	dependencies {
                ...
              implementation 'com.iwdael:wifimanager:$version'
	}




感谢浏览

请不要吝啬你的小星星,如果你有任何疑问,请加入QQ群,我将竭诚为你解答。
Image Text

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].