print "Hallo, python 1"
import bluetooth
x="value x"
print "Hallo, python 2 x=",x
nearby_devices = bluetooth.discover_devices()
print "near", nearby_devices
for bdaddr in nearby_devices:
print "bdaddr=", bdaddr
nm = bluetooth.lookup_name( bdaddr )
print "bdaddr=", bdaddr, " => name=", nm
print "end of loop"
port = 1
sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM )
sock.connect((bdaddr, port))
r = sock.send("hello!!")
print "send", r
sock.close()