python3.7.2安装pywifi_python pywifi
1、the status of the wifi:
const.IFACE_DISCONNECTED
const.IFACE_SCANNING
const.IFACE_INACTIVE
const.IFACE_CONNECTING
const.IFACE_CONNECTED
2、authention algorithm: almost use open
const.AUTH_OPEN
const.AUTH_SHARED
3、key management type
an AP is no security setting, set the profile akm as AKM_TYPE_NONE.
an AP is in WPA mode, set the profile akm as AKM_TYUPE_WPAPSK.
an AP is in WPA2 mode, set the profile akm as AKM_TYUPE_WPA2PSK.
AKM_TYPE_WPA and AKM_TYPE_WPA2 are used by the enterprise APs.
const.AKM_TYPE_NONE
const.AKM_TYPE_WPA
const.AKM_TYPE_WPAPSK
const.AKM_TYPE_WPA2
const.AKM_TYPE_WPA2PSK
4、cipher types
const.CIPHER_TYPE_NONE
const.CIPHER_TYPE_WEP
const.CIPHER_TYPE_TKIP
const.CIPHER_TYPE_CCMP
5、network profile
ssid - The ssid of the AP.
auth - The authentication algorithm of the AP.
akm - The key management type of the AP.
cipher - The cipher type of the AP.
key (optinoal) - The key of the AP. This should be set if the cipher is not CIPHER_TYPE_NONE.import pywifi
wifi = pywifi.PyWiFi()
iface = wifi.interfaces()[0]
Interface.name()
Get the name of the Wi-Fi interface.
Interface.scan()
Trigger the interface to scan APs.
Interface.scan_results()
Obtain the results of the previous triggerred scan. A Profile list will be returned.
Note. Because the scan time for each Wi-Fi interface is variant. It is safer to call scan_results() 2 ~ 8 seconds later after calling scan().
Interface.add_network_profile(profile)
Add the AP profile for connecting to later.
Interface.remove_all_network_profiles()
Remove all the AP profiles.
Interface.network_profiles()
Obtain all the saved AP profiles by returning a Profile list.
Interface.connect(profile)
Connect to the specified AP by the given profile. Note. As current design, add_network_profile(profile) should be called before connect(profile) is called.
Interface.disconnect()
Disconnect current AP connection.
Interface.status()
Get the status of current status.
python3.7.2安装pywifi_python pywifi相关推荐
- python3.7.1安装教程详细_CentOS 7 安装python3.7.1的方法及注意事项
安装wget yum -y install wget 创建一个download目录用于下载各种安装包 mkdir download 切换到刚创建的download目录中 cd download 下载p ...
- linux python2和python3共存_linux-Centos7安装python3并与python2共存
1.查看是否已经安装Python CentOS 7.2 默认安装了python2.7.5 因为一些命令要用它比如yum 它使用的是python2.7.5. 使用 python -V 命令查看一下是否安 ...
- python3里的pillow怎么安装_“python安装pillow教程“python3.4怎么安装pil
"python安装pillow教程"python3.4怎么安装pil python安装pillow教程2020-10-09 03:37:02人已围观 如何在python3.6中装p ...
- python3.5.3安装完后什么样子_python3.5安装python3-tk详解
在python3.5下安装好matplotlib后,准备显示一张图片测试一下,但是控制台报错说需要安装python3-tk,我天真的以为直接: sudo apt-get install python3 ...
- python3和pip3安装和问题解决
python3和pip3安装和问题解决 参考文章: (1)python3和pip3安装和问题解决 (2)https://www.cnblogs.com/amoyzhu/p/9284294.html 备 ...
- python3.6安装教程-python3.6环境安装+pip环境配置教程图文详解
1.python安装可以跨平台 2.有两个版本2.7和3.6,第三方库适用2.7版,两个版本不兼容 windows安装: 第一种方法官网安装: 在官网下载安装包如图: 图下点击是默认下载32位所以我们 ...
- python详细安装教程环境配置-python3.6环境安装+pip环境配置教程图文详解
1.python安装可以跨平台 2.有两个版本2.7和3.6,第三方库适用2.7版,两个版本不兼容 windows安装: 第一种方法官网安装: 在官网下载安装包如图: 图下点击是默认下载32位所以我们 ...
- python3.6.4安装教程-Centos7 安装Python3.6.4
1.在安装Python之前,需要先安装一些后面遇到的依赖问题(如果有依赖问题,按照提示安装): yum -y install zlib-devel bzip2-devel openssl-devel ...
- python3.5怎么安装pip-在python3.5中使用pip
我centos7上同时有python2.7和python3.5.现在希望能在使用python3.5时也能用pip.本来这应该是很容易的一件事,然而我一步步掉进坑里.. 官网安装pip的方法是,http ...
最新文章
- 从一次react异步setState引发的思考
- 这届科技冬奥,就数这位北京大妞让人意想不到
- Redis事件管理(三)
- 论文的“面子”与“里子”
- 文献记录(part40)--An adversarial human pose estimation network injected with graph structure
- 邮箱服务器ip地址白名单,申请SSL证书时如何设置IP地址白名单和邮箱白名单
- [ ArcGIS for Server 10.1 系列 ] - 重新创建Site
- Android Studio Design界面不显示layout控件的解决方法
- 使用迁移学习后使用微调再次提高模型训练的准确率
- 如何使用html如何安装,node.js – 如何使用全球安装的grunt-html?
- JS关于辅助函数inherit()的小问题
- 单门课程成绩管理系统用c语言,[转载]C语言课程设计——学生成绩管理系统
- 服装CAD软件测试初学者,CAD服装打版基础教程
- Epub360、iH5、Mugeda,三款专业级H5设计工具详评
- 怎么用HTML表格中加上线条,如何在html的表格中加入边框线
- 电脑数据格式化如何快速简单恢复数据?
- IBM云对象存储Cleversafe 大力拓展全新战场
- VMware中的虚拟机设置开启VT虚拟化 虚拟机中创建虚拟机
- 无序数组中获取第k个最大数
- 人人都是产品经理 产品经理培训 互联网产品经理
热门文章
- 114. Flatten Binary Tree to Linked List【Medium】【将给定的二叉树转化为“只有右孩子节点”的链表(树)】...
- nginx轻松搭建自己的flv流媒体服务器
- 在ASP.NET中调用存储过程方法
- 《CLIP2Video》-腾讯PCG提出CLIP2Video,基于CLIP解决视频文本检索问题,性能SOTA!代码已开源!...
- 视频增强之“动态范围扩展”HDR技术漫谈
- 全奖博士招生,荷兰根特大学 ​IDLab 实验室,手语手势识别方向
- 华科PAMI黑科技,方向任意目标检测新算法
- 目前最强开源人脸检测算法RetinaFace
- 过拟合解决方法之L2正则化和Dropout
- Tensorflow新手通过PlayGround可视化初识神经网络