SATS/feature/portail-receiver/test.py

10 lines
138 B
Python

from bluetooth import *;
sock = BluetoothSocket( RFCOMM );
sock.bind( ('', PORT_ANY) );
sock.listen(1);
port = sock.getsockname()[1];