gobbledegook icon indicating copy to clipboard operation
gobbledegook copied to clipboard

Is it possible to set Advertised service UUID?

Open natriumlamp opened this issue 6 years ago • 2 comments

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?

natriumlamp avatar Jan 10 '19 14:01 natriumlamp

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.

FTaluk avatar May 07 '19 13:05 FTaluk

See also my comment in this thread: https://github.com/nettlep/gobbledegook/issues/26#issuecomment-495555286

for an example implementation.

stez-mind avatar May 24 '19 10:05 stez-mind