Skip to main content

bluetooth library

Project description

Build Status

asciicast

how to …

… get started

./dependencies.py

… to use it

Python 3.7.5rc1 (default, Oct  8 2019, 16:47:45)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.9.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from pybt import Scanner, ClassicDevice

In [2]: Scanner.scan_for()
Permission Denied
Set scan parameters failed (are you root?)
found 1 devices
Out[2]: [<pybt.libs.bt.classic.ClassicDevice at 0x7f3427045210>]

In [3]: c = ClassicDevice.scan()

In [4]: c
Out[4]: [<pybt.libs.bt.classic.ClassicDevice at 0x7f3425559d50>]

In [5]: c[0].__dict__
Out[5]:
{'address': 'A8:B8:6E:C1:6A:28',
 'timestamp': '03.11.2019 16:48:06',
 'name': 'Nexus 5X'}

or check bt.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pybt-smthnspcl, version 0.43
Filename, size File type Python version Upload date Hashes
Filename, size pybt_smthnspcl-0.43-py3.8.egg (18.7 kB) File type Egg Python version 3.8 Upload date Hashes View
Filename, size pybt_smthnspcl-0.43-py3-none-any.whl (19.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pybt-smthnspcl-0.43.tar.gz (18.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page