I wanna make a simple connection between raspberry and phone but every time i write .accept() i get [Errno 77] File descriptor in bad state. Here is the code: Answer The problem is that you mixed up both client and server logic in the given code snippet. Once connect() is called the socket becomes a client, so indeed trying to
Tag: bluetooth
Python opp obex server using Bluez-obex and pydbus?
For my project, I need to downlink .zip files over Bluetooth. I am using python and obex for this. I have a working python opp client implemented (shout-out to ukBaz for the help), but I am still using os to start the server, so the rest of my server program has no idea when a file is received. The rest
Pairing bluetooth devices with Passkey/Password in python – RFCOMM (Linux)
I am working on a Python script to search for bluetooth devices and connect them using RFCOMM. This devices has Passkey/Password. I am using PyBlueZ and, as far as I know, this library cannot handle Passkey/Password connections (Python PyBluez connecting to passkey protected device). I am able to discover the devices and retrieve their names and addresses: But if tried
Communicating via Bluetooth serial with Python
How do you process and receive serial data via Bluetooth and Python? I’m trying to make a simple Python server that access data via Bluetooth as explained here. My server.py file, which sends a random number when sent the text “temp”, is: When I first ran this, I was getting the error: which Googled showed could be fixed by enabling