Я установил BluetoothRFCommSocket с этим кодом:
from scapy.layers.bluetooth import *
from scapy.all import *
bt = BluetoothRFCommSocket('68:A0:3E:CC:24:06',2)
И ошибка:
Traceback (most recent call last):
File "test.py", line 3, in <module>
bt = BluetoothRFCommSocket('68:A0:3E:CC:24:06',2)
File "/usr/local/lib/python2.7/dist-packages/scapy-2.4.3rc1.dev120-py2.7.egg/scapy/layers/bluetooth.py", line 1229, in __init__
s.connect((bt_address, port))
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 22] Invalid argument
Как правильно настроить BluetoothRFCommSocket и отправить его?