Skip to content

org.bluez.LEAdvertisement: Add broadcast name support

Alexander Sarmanow linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2doc/org.bluez.LEAdvertisement: Add broadcast namedoc/org.bluez.LEAdvertisement.rst+7 -02 replies
2/2advertising: Add broadcast name property supportsrc/advertising.c src/shared/ad.h+47 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ 0/2] org.bluez.LEAdvertisement: Add broadcast name support

From: Alexander Sarmanow (Televic) <[email protected]>

This series adds dedicated support for setting the broadcast name via DBus to the org.bluez.LEAdvertisement object. Should make it easier for upper layers to set this advertisement property.

The Public Broadcast Profile (PBP v1.0, see section 5.1.1) restricts the string length to a minimum of 4 and a maximum of 32 characters. If the provided name is shorter than the minimum, pasring returns an error.If it exceeds the maximum, it is truncated, consistent with the behavior for the local name.

The BroadcastName property will be parsed in any case, but only added to the advertisement data in case it's of type broadcast.

Tested by setting a broadcast name via pipewire bluez spa plugin.

Alexander Sarmanow (2):
doc/org.bluez.LEAdvertisement: Add broadcast name
advertising: Add broadcast name property support

 doc/org.bluez.LEAdvertisement.rst |  7 +++++
 src/advertising.c                 | 44 +++++++++++++++++++++++++++++++
 src/shared/ad.h                   |  3 +++
 3 files changed, 54 insertions(+)
Signature · 1 line
2.30.2