-
Notifications
You must be signed in to change notification settings - Fork 452
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
Services are not discoverable #20
Comments
Hi Parkboo, Maybe it's because you ask to advertise a service uuid 1112 : bleno.startAdvertising('pi-test', ['1112']); And you don't declare it anywhere. The two services you declare are '180a' and '01010101010101010101010101010101'... Try to replace the code above by : bleno.startAdvertising('pi-test', ['180a']); or bleno.startAdvertising('pi-test', ['01010101010101010101010101010101']); And I'm not sure you can use the same characteristic instance in two different services, but maybe I'm wrong... Hope it helps ;) |
@parkboo code snippet worked for me the first time: Which version of bleno and BlueZ are you using? It might be related to issue #18. Thanks for helping out @FredericRuaudel ! |
@FredericRuaudel @sandeepmistry Thank you all, guys. |
@parkboo I'm running BlueZ 4.99 on my RPi, no need to upgrade. I would try to update your kernel, mine is 3.6.11+. Which version of bleno are you using? |
@sandeepmistry My bleno version is 0.1.1. I installed bleno with npm just a few days ago. |
Ok, that's good you'll have this 67b9bf1. I'm running Github master. Just to confirm, your issue is your not seeing the advertised service UUID? Like in my screenshot. |
@sandeepmistry Yes, exactly. |
@sandeepmistry I've downgraded firmware to 3.6.11+ and everything works fine! |
parkboo > how did you downgrade the firmware (kernel)? I have similar issues with Bleno. |
@pdominique Visit https://github.com/Hexxeh/rpi-firmware/commits/ and get the commit id of firmware what you want and pass it as an argument of rpi-update. sudo rpi-update f48e3c15504300c2ac7b677c295dfa6a0ed2121a |
Thanks @parkboo I'll get a another SD setup for my RPi to try out. |
This is a duplicate of #18. |
Hello,
Thank you for your awesome project.
I'm struggling with an issue.
My developing environment is:
I wrote a node.js test code with 2 services but these services are not discoverable like this screen shot :
(pi-parkboo is my rpi's name)
I think my dongle works correctly because when I wrote a very simple BLE advertising code with C it works perfectly and BLE scanner can catch there are services.
My code snippet is : https://gist.github.com/parkboo/7277ccda610323a95027
The text was updated successfully, but these errors were encountered: