Created
September 29, 2018 06:56
-
-
Save wwj718/070f664e78e70a46540fea3670c4478b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/midoriiro/320c6990ab8e66343a7b | |
from PyQt5 import QtBluetooth | |
from PyQt5.QtBluetooth import QBluetoothLocalDevice | |
local_device = QBluetoothLocalDevice() | |
# 查看本机蓝牙 mac | |
all = local_device.allDevices() | |
first = all[0] | |
address = first.address().toString() # 88:E9:FE:5B:99:04 | |
# first.name() # wuwenjie的MacBook Pro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment