1 year ago
#157463
thomasMI
Is there an easy way to scan for surrounding bluetooth devices and get their RSSI to detect proximity in Python?
We have to create a prototype of a social distancing app, but are all relatively inexperienced programmers. Does any of you have an idea to do this?
I already setup Python and Kivy for the app development.
I was already looking into Bluetooth Proximity Detection, but experiencing some troubles. When running that:
import bluetooth
print(bluetooth.discover_devices(duration=8, lookup_names=True, flush_cache=True, lookup_class=False))
I receive this error:
ImportError: Cannot load LightAquaBlue framework, not found at /Users/thomask/PycharmProjects/Baap/lib/python3.7/site-packages/lightblue/LightAquaBlue.framework
But when trying to install Lightblue package, I get this error:
The following build commands failed: CompileC /Users/thomask/Downloads/lightblue-0.4-master/src/mac/LightAquaBlue/build/LightAquaBlue.build/Release/LightAquaBlue.build/Objects-normal/arm64/BBServiceAdvertiser.o /Users/thomask/Downloads/lightblue-0.4-master/src/mac/LightAquaBlue/BBServiceAdvertiser.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'LightAquaBlue' from project 'LightAquaBlue') (1 failure)
python
bluetooth
kivy
rssi
0 Answers
Your Answer