提问人:Ganesh Aadhineni 提问时间:11/15/2023 更新时间:11/15/2023 访问量:16
如何使用 python 将 Raspberry Pi 蓝牙代理更改为“NoInputNoOutput”
How to change Raspberry Pi Bluetooth agent to "NoInputNoOutput" using the python
问:
我需要通过 Python 脚本更改 Raspberry Pi 蓝牙代理。我能够在终端中使用命令“bluetoothctl --agent NoInputNoOutput”更改代理 当我尝试通过 python 执行“bluetoothctl --agent NoInputNoOutput”时,它不会执行它是空闲的
我通过 SSH 连接了树莓派,并使用以下行执行命令
ssh_client.executecommand(“bluetoothctl --agent NoInputNoOutput”)
通过 python 执行“bluetoothctl --agent NoInputNoOutput”命令的任何建议或任何更改
其他蓝牙命令正在成功执行
ssh_client.executecommand("bluetoothctl power on")
ssh_client.executecommand("bluetoothctl discoverable on")
ssh_client.executecommand("bluetoothctl pairable on")
答: 暂无答案
评论