bluez_peripheral icon indicating copy to clipboard operation
bluez_peripheral copied to clipboard

Appearance should be optional in Advertisement

Open lpicou opened this issue 6 months ago • 1 comments

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

lpicou avatar Jul 04 '25 10:07 lpicou

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.

spacecheese avatar Sep 14 '25 17:09 spacecheese