gobbledegook
gobbledegook copied to clipboard
Is it possible to set Advertised service UUID?
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?
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.
See also my comment in this thread: https://github.com/nettlep/gobbledegook/issues/26#issuecomment-495555286
for an example implementation.