-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection Refused, works with gatttool #15
Comments
There's a PR (#14) to fix the empty address issue. As to why the connection is refused, are you sure the peripheral is not already connected to something else? Maybe reset the device being connected to? The library is working for me outside of a few bugs, connections and all. |
Thanks for responding @bleggett . |
Nope, I'm doing almost exactly the same thing you are.
|
Okay so where do you think my error can come from ? My device is working fine and i can get connected with other tools before and after my tests with rumble |
You might try |
I've merged #14, so hopefully the first problem is fixed (also, it's easier to access the address using To help debug the second issue, can you send me a pcap trace of your bluetooth traffic while running the example? The easiest way to capture one is through wireshark. You can send it to micah@micahw.com. |
I wrote this function (mostly inspired by the example):
And my output is the following:
I don't know if I misuse the library or if this is just a bug but in the meanwhile I guess I will have to workaround by getting the addresses from the events or by using another crate.
EDIT:
Ok so my main issue is that i can't get my program to get connected with my device. For the issue above, I looked at the code and figured out that the address field has nothing to do with the fact that the connection is refused.
I did copy/past the example and replaced the name of my device (which is the OpenBCI_Ganglion board). I get the following output:
for the following code:
Do you see any reason why I get this "Connection Refused" error ? I tried with gatttool and it works perfectly though...
The text was updated successfully, but these errors were encountered: