mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-27 06:43:42 +08:00
test: Add support for profile Service property
This commit is contained in:
parent
6a7a6d6646
commit
9e02ef2242
@ -70,6 +70,9 @@ if __name__ == '__main__':
|
||||
make_option("-r", "--record", action="store",
|
||||
type="string", dest="record",
|
||||
default=None),
|
||||
make_option("-S", "--service", action="store",
|
||||
type="string", dest="service",
|
||||
default=None),
|
||||
]
|
||||
|
||||
parser = OptionParser(option_list=option_list)
|
||||
@ -99,6 +102,9 @@ if __name__ == '__main__':
|
||||
if (options.record):
|
||||
opts["ServiceRecord"] = options.record
|
||||
|
||||
if (options.service):
|
||||
opts["Service"] = options.service
|
||||
|
||||
manager.RegisterProfile(options.path, options.uuid, opts)
|
||||
|
||||
mainloop.run()
|
||||
|
Loading…
Reference in New Issue
Block a user