# file: inquiry.py # auth: Albert Huang # desc: performs a simple device inquiry followed by a remote name request of # each discovered device # $Id: inquiry.py,v 1.7 2006/05/05 19:07:48 albert Exp $ # import bluetooth print "performing inquiry..." nearby_devices = bluetooth.discover_devices(lookup_names = True) print "found %d devices" % len(nearby_devices) for name, addr in nearby_devices: print " %s - %s" % (addr, name)