Tan*_*mar 5 macos terminal bluez
大家好,我一直在尝试在 mac os 终端上使用 hcitool,但是每当我输入hcitool scan以下错误时,-bash: hcitool: command not found我都尝试过pip install hci,pip install hcitool但显示以下错误
ERROR: Could not find a version that satisfies the requirement gatttool (from versions: none)
Run Code Online (Sandbox Code Playgroud)
错误:找不到 gatttool 的匹配发行版
请在这件事上给予我帮助
hcitool、gatttool、hciconfig 等命令是 BlueZ 软件包的一部分,仅适用于 Linux。另一方面,MacOS 是 UNIX 核心,因此命令不会在 MacOS 操作系统上运行。之前有一些黑客可以在 MacOS 操作系统上获得某种功能,但解决方案总是不完整的。
您的下一个最佳选择是使用运行 Linux 来宾(例如 Ubuntu)的虚拟机,然后在该 VM 操作系统中使用 BlueZ 命令。
我希望这有帮助。
| 归档时间: |
|
| 查看次数: |
6084 次 |
| 最近记录: |