Open lokeshh opened 5 years ago
You can read identity
file under specific HCI interface which provides MAC address of the local Bluetooth device.
sudo cat /sys/kernel/debug/bluetooth/hci0/identity
It would have been better if this is available through the python only so that I don't need to use sudo
and cat
which are system dependent.
Is there a way to know the MAC address of the bluetooth device of the machine? The equivalent to do this in linux is
hciconfig | grep "BD Address" | awk '{ print $3}'