rover/connections.py
def _btConnect(self):
		'''
		Initializes the server side for bluetooth communication, with a timeout of 1 second between data from the app
		'''
		server_sock = BluetoothSocket(RFCOMM)
		server_sock.bind(("",PORT_ANY))
		server_sock.listen(1)

		port = server_sock.getsockname()[1]
		uuid = self.config['BLUETOOTH_SOCKET_CONFIG']['UUID']
		name = self.config['BLUETOOTH_SOCKET_CONFIG']['name']
		advertise_service( server_sock, name,
						   service_id = uuid,
						   service_classes = [uuid, SERIAL_PORT_CLASS],
						   profiles = [SERIAL_PORT_PROFILE],
						   )
		print "waiting for connection on RFCOMM channel %d" % port
		client_socket, client_info = server_sock.accept()
		client_socket.setblocking(0)
		print "Accepted connection from ", client_info
		self.bt_sock = client_socket
		self.bt_sock.settimeout(1)

		Initializes the server side for bluetooth communication, with a timeout of 1 second between data from the app
		
Initializes the server side for bluetooth communication, with a timeout of 1 second between data from the app
Initializes the server side for bluetooth communication with a timeout of 1 second between data from the app
def _btConnect(self):
		server_sock = BluetoothSocket(RFCOMM)
		server_sock.bind(("",PORT_ANY))
		server_sock.listen(1)
		port = server_sock.getsockname()[1]
		uuid = self.config['BLUETOOTH_SOCKET_CONFIG']['UUID']
		name = self.config['BLUETOOTH_SOCKET_CONFIG']['name']
		advertise_service( server_sock, name,
						   service_id = uuid,
						   service_classes = [uuid, SERIAL_PORT_CLASS],
						   profiles = [SERIAL_PORT_PROFILE],
						   )
		print "waiting for connection on RFCOMM channel %d" % port
		client_socket, client_info = server_sock.accept()
		client_socket.setblocking(0)
		print "Accepted connection from ", client_info
		self.bt_sock = client_socket
		self.bt_sock.settimeout(1)
def _btConnect ( self ) : server_sock = BluetoothSocket ( RFCOMM ) server_sock . bind ( ( "" , PORT_ANY ) ) server_sock . listen ( 1 ) port = server_sock . getsockname ( ) [ 1 ] uuid = self . config [ 'BLUETOOTH_SOCKET_CONFIG' ] [ 'UUID' ] name = self . config [ 'BLUETOOTH_SOCKET_CONFIG' ] [ 'name' ] advertise_service ( server_sock , name , service_id = uuid , service_classes = [ uuid , SERIAL_PORT_CLASS ] , profiles = [ SERIAL_PORT_PROFILE ] , ) print "waiting for connection on RFCOMM channel %d" % port client_socket , client_info = server_sock . accept ( ) client_socket . setblocking ( 0 ) print "Accepted connection from " , client_info self . bt_sock = client_socket self . bt_sock . settimeout ( 1 )
Initializes the server side for bluetooth communication, with a timeout of 1 second between data from the app
Initializes the server side for bluetooth communication with a timeout of 1 second between data from the app
'''
		Initializes the server side for bluetooth communication, with a timeout of 1 second between data from the app
		'''
self