sorry, i didn't realise it's your code that print that error accessing bluetooth device... and I didn't have any idea why you cannot access the device.
remove the try/except block.
by using blank except you shadow any exception message that will tell what's wrong
you should always use specific error that you can catch
EDIT: I see -
remove the try/except block.
by using blank except you shadow any exception message that will tell what's wrong
you should always use specific error that you can catch
EDIT: I see -
scan(sock)
should be scan_sock(sock)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs