I want to use twisted and bluetooth together. At the moment, I am doing this with PyBluez running in a twisted stream.
PyBluez just creates some kind of socket (or socket-like? Does it have a file descriptor object like a regular socket), basically you:
sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) sock.connect((device_id,1))
Can I somehow insert this socket into a twisted reactor and associate it with the protocol?
Chris source share