Namespaces
Variants
Actions

Archived:How to get the Bluetooth address of phone using PySymbian

Jump to: navigation, search
Archived.png
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.

All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.

This is a small code snippet in PySymbian to get the Bluetooth address of your phone.

Article Metadata

Tested with
Devices(s): N70, N95 8gb

Compatibility
Platform(s): S60 2nd edition, 3rd Edition

Article
Keywords: miso, misty
Created: gaba88 (07 May 2008)
Last edited: hamishwillee (08 May 2013)

Preconditions

  • You need to have the miso library installed.
  • For S60 3rd edition devices you need to install Misty module by Cyke64.

Code snippet

import miso
def bt_connected():
try:
miso.local_bt_name() # address here
except:
return False
return True
 
bt_connected()

Preconditions

  • The Bluetooth address of the device will be printed on the python shell.
This page was last modified on 8 May 2013, at 08:50.
183 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved