
Originally Posted by
jtullis
Take a look at the
Miso module. Documentation
here
local_bt_address()
Returns the local Bluetooth address.
Only works with Bluetooth enabled.
local_bt_name()
Returns the local Bluetooth name.
Only works with Bluetooth enabled.
Code:
import miso
print miso.local_bt_address()
print miso.local_bt_name()
Works great. Thanks.
Here's one not-so-elegant solution to check if bt is connected:
Code:
def bt_connected():
try:
miso.local_bt_name()
except:
return False
return True
Let me know if there's another way to do that.
Note: I wonder why such basic functions are not in the PyS60 native libraries.