This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import bluetooth | |
import time | |
import urllib2 | |
print "In/Out Board" | |
while True: | |
print "Checking " + time.strftime("%a, %d %b %Y %H:%M:%S", time.gmtime()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple inquiry example | |
import bluetooth | |
nearby_devices = bluetooth.discover_devices(lookup_names=True) | |
print("found %d devices" % len(nearby_devices)) | |
for addr, name in nearby_devices: | |
print(" %s - %s" % (addr, name)) |