What steps will reproduce the problem? 1. subclass DeviceDiscoverer 2. call find_devices 3.
What is the expected output? What do you see instead? I subclassed DeviceDiscoverer with device_discovered implemented with a simple print of the address but nothing appens. The same with inquiry_complete, it is never called
What version of the product are you using? On what operating system? I'm using 0.15 on Linux Debian etch
Please provide any additional information below.
!/usr/bin/env python
from bluetooth import DeviceDiscoverer import time
class BlueZone(DeviceDiscoverer):
def __init__(self):
DeviceDiscoverer.__init__(self)
def device_discovered(self, address, device_class, name):
print "%s - %s" % (address,name)
def inquiry_complete(self):
print "COMPLETED"
print "START"
bz = BlueZone()
bz.find_devices(True,8,True)
print "PAUSE"
time.sleep(120)
print "STOP"
Comment #1
Posted on Sep 30, 2008 by Quick RabbitPlease see the examples and documentation on how to use DeviceDiscoverer. examples/simple/asynchronous-inquiry.py is a good place to start.
Comment #2
Posted on Oct 8, 2008 by Quick Rabbit(No comment was entered for this change.)
Status: Invalid
Labels:
Type-Other
Priority-Low