Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bluetooth lib for python 3 [closed]

Tags:

I searched for lib for bluetooth programming in python and I found PyBluez but it is not compatible with Python 3. So is there any other free library for bluetooth programming compatible with Python 3?

like image 875
Hadi Avatar asked May 14 '12 12:05

Hadi


People also ask

Can you code for Bluetooth in Python?

PyBluez is the most effective way of communicating over Bluetooth using Python. Python sockets can now be used for Bluetooth communication (since Python 3.3). For a simple application, the code is almost identical.

What is PyBluez?

PyBluez is an effort to create python wrappers around system Bluetooth resources to allow Python developers to easily and quickly create Bluetooth applications. PyBluez works on GNU/Linux and Windows XP (Microsoft and Widcomm Bluetooth stacks). It is freely available under the GNU General Public License.


2 Answers

PyBluez now supports Python 3.

Like the other answers state, there is inbuilt support for Bluetooth in Python sockets (Python 3.3 and above). However, there is little to no documentation on how to actually use the sockets with Bluetooth. I wrote a brief tutorial so that I could refer back to it once I forget. You might find it useful.

like image 173
Kevin Avatar answered Oct 23 '22 17:10

Kevin


On python 3.3 there is native support!! You can use bluetooth like a socket object

http://docs.python.org/3.3/library/socket.html

like image 33
piertoni Avatar answered Oct 23 '22 17:10

piertoni