diff --git a/Presa_relay_2.jpg b/Presa_relay_2.jpg new file mode 100644 index 0000000..10ad4b2 Binary files /dev/null and b/Presa_relay_2.jpg differ diff --git a/bluetoothRele.py b/bluetoothRele.py new file mode 100644 index 0000000..a27a2c4 --- /dev/null +++ b/bluetoothRele.py @@ -0,0 +1,17 @@ +#!/usr/bin/python +import bluetooth +import sys +bd_addr = "30:14:06:26:04:18" #itade address + +port = 1 +sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) +sock.connect((bd_addr, port)) +print 'Connected' +sock.settimeout(1.0) +print sys.argv[1] +sock.send(sys.argv[1]) +print 'Sent data' +data = sock.recv(1) +print 'received [%s]' % data +sock.close() +print 'socket chius'