Answer the question
In order to leave comments, you need to log in
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()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question