Hi experts,
I'm trying to test this code which basically tries to see if a particular mobile named Microbox is detected. Kindly check it out..
I'm using Pybluez andCode:import bluetooth target_name = "Microbox" target_address = None nearby_devices = bluetooth.discover_devices() for bdaddr in nearby_devices: if target_name == bluetooth.lookup_name( bdaddr ): target_address = bdaddr break if target_address is not None: print "found target bluetooth device with address ", target_address else: print "could not find target bluetooth device nearby"
Unfortunately I'm stuck with this error..
Traceback (most recent call last):
File "C:/Python26/using_bluez.py", line 4, in <module>
nearby_devices = bluetooth.discover_devices()
File "C:\Python26\Lib\site-packages\bluetooth\msbt.py", line 9, in discover_devices
return bt.discover_devices (flush_cache, lookup_names)
IOError: No Bluetooth adapter detected
I appreciate any help

Reply With Quote


