×
Namespaces

Variants
Actions

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

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngAquivado: 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 (31 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 31 May 2013, at 04:04.
64 page views in the last 30 days.