from bluetooth import * server_addr = "01:23:45:67:89:AB" port = 0x1001 sock=BluetoothSocket(L2CAP) sock.connect((server_addr, port)) sock.send("hello!!") sock.close()