Skip to content
Advertisement

Tag: pybluez

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

Advertisement