Cannot see service ID #5883
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2023-05-08 by @fanoush too bad you did not include declaration of CUSTOM_SERVICE_UUID if you use short service id format then in the if you use long guid then it may be issue with not enough space in advertising packet and/or doing only passive scan that does not parse scan response long guid is 16 bytes, together with the nordic uart it cannot fit into 31bytes of advertising packet so it is most probably in scan response Posted at 2023-05-08 by user155409 ahhh, I will try that--thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-05-08 by user155409
I am trying to create a service that allows external applications to buzz the BangleJS. At the moment I'm just trying to write a very simple new service to make sure I can connect. I use this code in the Web IDE:
But when I use a web browser to scan for services using Web BLE on a second program, OR from a secondary C++ application none of my programs see my new service ID. They see the NUS service UUID [6e400001-b5a3-f393-e0a9-e50e24dcca9e] and the GATT service id [ 0001801-0000-1000-8000-00805f9b34fb], but they don't see any other services. Do I have to do something special to advertise my new service? How do I get it to show up in scans?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions