Esempio n. 1
0
def test(port, nodetype, baud):
    trans.connect_serial(port, nodetype, baud)
    t = threading.Thread(target=trans.send_loop,
                         args=(port, 'Hello, world!', 1.0, 10))
    t.start()
    trans.read_serial_forever()
    t.join()
Esempio n. 2
0
def receive(port, nodetype, baud):
	trans.connect_serial(port, nodetype, baud)
	t = threading.Thread(target=trans.send_stdin, args=(port,))
	t.start()

	trans.read_serial_forever()

	t.join()
Esempio n. 3
0
def send(port, rdf, recv, nodetype, baud):
	trans.connect_serial(port, nodetype, baud)
	
	t = threading.Thread(target=trans.transfer_rdf, args=(port, rdf))
	t.start()
	
	if recv:
		trans.read_serial_forever()
		
	t.join()
Esempio n. 4
0
def test(port, nodetype, baud):
	trans.connect_serial(port, nodetype, baud)
	t = threading.Thread(target=trans.send_loop, args=(port, 'Hello, world!', 1.0, 10))
	t.start()
	trans.read_serial_forever()
	t.join()
def receive(port, nodetype, baud):
	trans.connect_serial(port, nodetype, baud)
	trans.read_serial_forever()
Esempio n. 6
0
def receive(port, nodetype, baud):
    trans.connect_serial(port, nodetype, baud)
    trans.read_serial_forever()