K
K
kirya00252017-05-01 10:15:15
Python
kirya0025, 2017-05-01 10:15:15

Why doesn't the bluetooth connection message appear on my phone when I run the code?

Good evening. I'm trying to connect to my phone through a computer. I want to create a chat between my phone and a computer via bluetooth. And when I try to connect to my computer, nothing happens to me and the code is at the connection point without action to infinity. And at the same time the connection message is not displayed on the phone. Tell me, how can I connect via bluetooth to the phone and send a message? Here is the code:

from bluetooth import *
client=BluetoothSocket( RFCOMM )
ADDR = "40:d3:ae:4b:f1:c1"
client.connect((ADDR,1))
client.send("hello!!")
client.close()

Tell me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question