回溯(最近一次调用):
devices = scanner.scan(arg.timeout)
self._mgmtCmd(self._cmd()+"end")未能执行mgmt '%s'“( cmd )%( cmd ) bluepy.btle.BTLEException:未能执行mgmt 'scanend‘
发布于 2019-02-13 22:14:51
有一个“修正”,这似乎是一个种族条件之间的调用之间的“蓝-助手”。
diff --git a/bluepy/btle.py b/bluepy/btle.py
index ec950e1..65e6a78 100755
--- a/bluepy/btle.py
+++ b/bluepy/btle.py
@@ -218,6 +218,7 @@ class BluepyHelper:
self._helper.stdin.write("quit\n")
self._helper.stdin.flush()
self._helper.wait()
+ time.sleep(0.1)
self._helper = None
if self._stderr is not None:
self._stderr.close()https://stackoverflow.com/questions/52352215
复制相似问题