BLE服务器:如何清理注册广告?

问题描述 投票:2回答:1

我正在尝试运行以下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)。我正在寻找一种方法来清理已注册的广告,如果有的话,可以在这个版本上启动我的服务器。

python bluetooth-lowenergy dbus intel-edison
1个回答
2
投票

如果你从github.com/edison-fw运行最新的Yocto图像并切换到最新的python3 example gatt server,服务器运行没有错误。 Bluetoothctl show显示在杀死gatt服务器后,心率服务会自动取消注册。

© www.soinside.com 2019 - 2024. All rights reserved.