我正在尝试运行以下python脚本:https://github.com/Jumperr-labs/python-gatt-server(gatt-server-example.py),这是一个蓝牙低功耗服务器。
它在我的计算机上工作得很好,但是当我尝试在intel-edison上运行它时,我得到以下错误:
Failed to register advertisement: org.bluez.Error.NotPermitted: Maximum
advertisements reached
此设备上安装了Python-dbus和bluez(Bluez v5.50)。我正在寻找一种方法来清理已注册的广告,如果有的话,可以在这个版本上启动我的服务器。
如果你从github.com/edison-fw运行最新的Yocto图像并切换到最新的python3 example gatt server,服务器运行没有错误。 Bluetoothctl show
显示在杀死gatt服务器后,心率服务会自动取消注册。