Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Detect user through Bluetooth demo, Python
import bluetooth
import time
while True:
print "Checking " + time.strftime("%a, %d %b %Y %H:%M:%S", time.gmtime())
result = bluetooth.lookup_name('78:7F:70:38:51:1B', timeout=5)
if (result != None):
print "User present"
print "User out of range"

This comment has been minimized.

Copy link

beosro commented Sep 6, 2017

Thank you! Nice pieces of code you have around ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.