为我自己的问题找到了解决方案。
也许这对某人有用。
要连接到特定设备:
echo -e 'power on\nconnect 1C:52:16:A5:86:18\t \nquit' | bluetoothctl
但如果有蓝牙设备关闭
sudo systemctl start bluetooth
全面的:
#!/bin/bash sudo systemctl start bluetooth sleep 2 echo -e 'power on\nconnect [Mac-address] \t \nquit' | bluetoothctl
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句