Skip to content
Advertisement

Tag: bluetooth

Why i get error using accept() method in pybluez?

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

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

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

Advertisement