Back

GetBluetoothAddress

JS Py
Hello World

Returns the hexadecimal Bluetooth address of the device, following the pattern “00:00:00:00:00:00”.

app.GetBluetoothAddress() → String

See Also: CreateBluetoothSerial

Example - Show Bluetooth Address

function OnStart()
{
    var addr = app.GetBluetoothAddress();
    app.Alert( addr );
}
from native import app

def OnStart():
    addr = app.GetBluetoothAddress()
    app.Alert( addr )
    Copy     Copy All       Run