bluez_peripheral
bluez_peripheral copied to clipboard
Appearance should be optional in Advertisement
Hello,
The apperance AD_TYPE is not mandatory. It shall not be included by default, as it restrain the amount of bytes available. Consider make it optional in the Advertisement constructor.
It removes 4 bytes in total : LENGTH(1) + TYPE(1) + VALUE(2)
Thanks
Unfortunately due to a dbus-next limitation I can't disable the appearance field per class instance. This would be possible with 2 separate classes but there are a lot of optional fields in these bluez interfaces so I don't like this solution. I'll revisit this when/ if the upstream issue is resolved.