How to connect pybluez RFCOMM server socket on Debian?
I have these snippet in python with pybluez framework: from bluetooth import * server_sock=BluetoothSocket( RFCOMM ) server_sock.bind(("",PORT_ANY)) server_sock.listen(1) port = server_sock.getsockname()[1] uuid = "94f39d29-7d6d-437d-973b-fba39e49d4ee" advertise_service( server_sock, "SampleServer", service_id = uuid # service_classes = [ uuid, SERIAL_PORT_CLASS ], # profiles = [ SERIAL_PORT_PROFILE ], # protocols = [ RFCOMM_UUID ] ) print "Waiting for connection on RFCOMM channel %d" % port client_sock, client_info = server_sock.accept() print "Accepted connection from ", client_info try: