You Are Here:

Community: Wiki

This page was last modified on 12 May 2008, at 09:32.

How to discover bluetooth device

From Forum Nokia Wiki


Python has good bluetooth support from the beginning. However, to discover another device, it requires you to interact with the app, choosing a device from the list.

PDIS has a library that help you list all devices silently (not 3rd edition).

# need to install these 2 modules from PDIS first
import aosocketnativenew
from aosocket.symbian.bt_device_discoverer import *
 
def callback(error, devices, cb_param=None):
for address, name in devices:
print "Found: ", name, address
# You can get more data by importing socket and try
# bt_discover(address) or bt_obex_discover(address)
# see details in official pys60 doc on socket module
 
lister = BtDeviceLister()
lister.discover_all(callback, None)

There's additional solution for 2nd and 3rd Edition : LightBlue library.

from lightblue import *
 
device=finddevices()

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia