2019年12月20日 星期五

Installing PyBluez in Windows10

PyBluez can be installed on GNU/Linux, Windows and macOS systems and is compatible with Python 2.7 and 3.

GNU/Linux Dependencies
  • Python 2.7 or more recent version
  • Python distutils (standard in most Python distros, separate package python-dev in Debian)
  • BlueZ libraries and header files

Windows Dependencies
  • Windows 7/8/8.1/10
  • Python 3.5 or more recent version
  • PyBluez requires a C++ compiler installed on your system to build CPython modules.
  • For Python 3.5 or higher
  • Microsoft Visual C++ 14.0 standalone: Build Tools for Visual Studio 2017 (x86, x64, ARM, ARM64)
  • Microsoft Visual C++ 14.0 with Visual Studio 2017 (x86, x64, ARM, ARM64)
  • Microsoft Visual C++ 14.0 standalone: Visual C++ Build Tools 2015 (x86, x64, ARM)
  • Microsoft Visual C++ 14.0 with Visual Studio 2015 (x86, x64, ARM)

Installing PyBluez in Windows 10

Run PyBluez API discover_devices()
  • location \pybluez-master\examples\simple\inquiry.py


I try to used PyBluez SDK to get data that broadcast from the client devices. But currently, I can only find devices nearby. And used find_service()  to list their service. After searching for some information from google. The PyBluez seems to only support RFComm protocol in the Windows10. I will continue to try to complete this task in Windows10.

PyBluez seems can't get advertising data under Win10. But I found another python PyPI. This SDK can meet my needs. Below is the GitHub Link: https://github.com/hbldh/bleak 

沒有留言:

張貼留言