SATS/feature/portail-receiver/test.py

10 lines
138 B
Python
Raw Permalink Normal View History

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