Python3.4.4 Bluetooth pybluez sock.recv

Hi guys,

I am working on bluetooth server application using pybluez lib in python. I have 2 version of python installed on my windows 7 PC (python2.7.15 and python 3.4.4) and both already have pybluez modules installed.
The program work great in python 2.7.15 but I found a different behaviour in python 3.4.4. 

In python 2.7.15, function:


waits until data is available, then step to next line if data is received. But in python 3.4.4, the data is not being waited, thus the program continously execute the next line, even if the data is not received yet.
What should I do to make it similar with behaviour in python 2.7.15?

Thanks for your help.

Hi @zkycloudz ,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.