Playing around with pybluez

We received our new laptops this week. Since they support Bluetooth (just as about any laptop these days), I decided to experiment a bit with detecting nearby Bluetooth devices. A while ago I discovered PyBluez, an easy-to-use Python Bluetooth library by MIT PhD student Albert Huang. The nice thing about it is that it works both on GNU/Linux and Windows.

One of the samples is the script inquiry.py which allowed me to detect nearby devices in just a few lines of code. Here it detected mine and Petr’s cell phones:

Using PyBluez to detect nearby devices

Tags: , ,

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus