kissiel / bt_helper Goto Github PK
View Code? Open in Web Editor NEWHuman-friendly Bluetooth API wrapping bluez over dbus.
Human-friendly Bluetooth API wrapping bluez over dbus.
(Pdb) p devices[1].pair()
Pairing of Arc Touch Mouse SE device failed. org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
None
If the device was not successfully paired, and it tries to connect to that device, it will cause bt_helper crash with the following error message:
Pairing of <dbus.proxies._ProxyMethod object at 0x7f1a8b783390> device failed. org.bluez.Error.AuthenticationFailed: Authentication Failed
Traceback (most recent call last):
File "./pair_mouse", line 28, in <module>
main()
File "./pair_mouse", line 20, in main
dev.pair()
File "/home/ubuntu/bt_helper/bt_helper.py", line 124, in pair
self._if.Connect()
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Operation already in progress
This can be solved by simply adding a try to it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.