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
Installing PyBluez in Windows 10
- 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
- Download and install windows 10 build tools: https://www.visualstudio.com/pl/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15
- Run 'Developer Command Prompt for VS' as administrator
- Download PYbluez repo https://github.com/karulis/pybluez
- run
python setup.py install
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
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