跳到主要内容

获取设备蓝牙MAC(device.bluetoothMac)

函数

device.bluetoothMac()

返回值

  • mac地址 文本型

说明

获取蓝牙的 mac 地址

示例

print(string.format("当前设备蓝牙 MAC地址: %s" ,device.bluetoothMac()))