如何一次又一次停止打印结果。因此,如何停止一次又一次获得价值
import gatt
class AnyDeviceManager(gatt.Device):
def device_discovered(self,device):
print("Discovered [%s] %s" % (device.mac_address,device.alias()))
manager = AnyDeviceManager(adapter_name='hci0')
manager.start_discovery()
manager.run()
如何一次又一次停止打印结果。那么如何停止一次又一次获得价值
import gatt
class AnyDeviceManager(gatt.Device):
def device_discovered(self,device):
print("Discovered [%s] %s" % (device.mac_address,device.alias()))
manager = AnyDeviceManager(adapter_name='hci0')
manager.start_discovery()
manager.run()
how to stop printing results again and again. So how do stop getting value again and again
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎您需要跟踪已经发现了哪些设备。
有不同的方法可以根据您想对信息进行操作。
一个例子是:
It would seem that you need to track which devices have already been discovered.
There are different ways to do this depending what you want to do with the information.
One example would be: