美文网首页
Python bluetooth

Python bluetooth

作者: 花生Linkin | 来源:发表于2020-08-17 14:03 被阅读0次

问题:如何使用python 控制本机蓝牙?

1. 需要安装哪个模块,网上搜索,比较多的是pybluez

安装方法:

pip install pybluez

2 基本应用,扫描附近的蓝牙设备:

import bluetooth

devs= bluetooth.discover_devices(duration=8,lookup_names=True, )

参考连接

github

相关文章

网友评论

      本文标题:Python bluetooth

      本文链接:https://www.haomeiwen.com/subject/rzprrktx.html