Answer the question
In order to leave comments, you need to log in
python 3 vs bluetooth
Please tell me how to work with bluetooth in the third python under Windows?
I do this:
import socket
…
serverSocket = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
I get
AttributeError: 'module' object has no attribute 'AF_BLUETOOTH'
A quick googling showed that AF_BLUETOOTH does not exist in Windows.
More detailed googling did not help to find any solution, except for switching to a bunch of python 2.6 + PyBluez.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question