Closed v1ack closed 1 year ago
I found an answer for my issue In the source code of bluez
struct ad_data {
uint8_t data[25];
uint8_t len;
};
struct manufacturer_data {
uint16_t id;
struct ad_data data;
};
Variant type must be ay
So, ManufacturerData = {2: Variant("ay", b'12')}
is valid
Looks like it should be mentioned in docs
@v1ack glad you found the solution. Since this seems to be DBus specific I'll close this. Please reopen if I'm missing something and you feel more should be implemented into bless.
I found an answer for my issue In the source code of bluez
struct ad_data { uint8_t data[25]; uint8_t len; }; struct manufacturer_data { uint16_t id; struct ad_data data; };
Variant type must be
ay
So,ManufacturerData = {2: Variant("ay", b'12')}
is valid Looks like it should be mentioned in docs
I tried this on apple M1 pro but failed though
The problem Provide a clear and concise description of what the problem is.
I want to make an advertisement with custom manufacturer data, but raises
dbus_next.errors.DBusError: Failed to parse advertisement.
Without
ManufacturerData
everything worksReproduction Provide instructions or code samples that demonstrate the issue if possible>
NewAdv added to BlueZ campatibility (like in #85 )
Expected behavior Provide a clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.