Skip to content
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

Is it possible to set Advertised service UUID? #16

Open
natriumlamp opened this issue Jan 10, 2019 · 2 comments
Open

Is it possible to set Advertised service UUID? #16

natriumlamp opened this issue Jan 10, 2019 · 2 comments

Comments

@natriumlamp
Copy link

natriumlamp commented Jan 10, 2019

Hello. I am really happy to discover this marvelous ble tool!

Currently, I want to set an Advertised service UUID for my specified ble application before connection for a central scanning device. While I understand I can set Advertised service UUID via using "sudo hcitool -i hci0 cmd 0x08 0x0008" command, but whenever I set the gobbledegook server up, Advertising packet gets initialized.

Is it a way to set it with gobbledegook?

@FTaluk
Copy link

FTaluk commented May 7, 2019

Look into Mgmt.cpp and setAdvertising(..). There, you can modify things as you want. For example, the add-advertisement command could be used instead of set-advertising command.
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/mgmt-api.txt
The link above describes the possible commands from mgmt-api of bluez.

@stez-mind
Copy link

See also my comment in this thread:
#26 (comment)

for an example implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants