Error 507 Unable to connect. Is the device turned on? : Bluetooth

Hi everyone. I am a noob and learning kodular. I am working on an android app that can send messages from the app to computer via PC. For PC I’ve made this program in python language and ran it

import bluetooth
server_socket=bluetooth.BluetoothSocket( bluetooth.RFCOMM )

port = 1

client_socket,address = server_socket.accept()
print "Accepted connection from ",address
while 1:

** data = client_socket.recv(1024)**

Then I’ve worked on the app. The coding is here

when i select device from the list view it is showing error 507. Please anyone help me. To get rid of this problem.

Never worked with Bluetooth components but you may find this guide/tutorial by Taifun helpful:

1 Like