When I try to set manufacturerData in the advertisement a dbus error is returned.
With dbus-monitor the problem was found: the array of bytes should be in a variant.
I found a solution, but don't have the skills to make a pull request.
All changes are in advert.py. This is the diff:
In __init__ it loops through the dict and changes the manufacturerData value to a Variant.
In ManufacturerData the type has to be changed from "a{qay}" to "a{qv}" where the variant "v" has type "ay".
This is a minimized script that gives an error with the original advert.py, but does work with the changed one:
When I try to set manufacturerData in the advertisement a dbus error is returned. With dbus-monitor the problem was found: the array of bytes should be in a variant.
I found a solution, but don't have the skills to make a pull request. All changes are in advert.py. This is the diff:
In
__init__
it loops through the dict and changes the manufacturerData value to a Variant. InManufacturerData
the type has to be changed from "a{qay}" to "a{qv}" where the variant "v" has type "ay".This is a minimized script that gives an error with the original advert.py, but does work with the changed one: