org.bluez...ertisement(5)
π NAME π
Okay bestie, welcome to the org.bluez.LEAdvertisement(5) page β yes, itβs the BlueZ D-Bus LEAdvertisement API documentation, and it lives in Linux System Administration land. Weβre gonna make it make sense, fr fr. π¦
π¦ DESCRIPTION π¦
Advertising packets are structured data which is broadcast on the LE Advertising channels and available for all devices in range. Because of the limited space available in LE Advertising packets, each packet's contents must be carefully controlled. π
bluetoothd(8) acts as a store for the Advertisement Data which is meant to be sent. It constructs the correct Advertisement Data from the structured data and configures the kernel to send the correct advertisement. Slay.
β¨ INTERFACE β¨
Specifies the Advertisement Data to be broadcast and some advertising parameters. Properties which are not present will not be included in the data. Required advertisement data types will always be included. All UUIDs are 128-bit versions in the API, and 16 or 32-bit versions of the same UUID will be used in the advertising data as appropriate. π
- Service:
org.bluez - Interface:
org.bluez.LEAdvertisement1 - Object path: freely definable
- Used by:
bluetoothctl-advertise(1)
π METHODS π
void Release() [noreply]β This method gets called when thebluetoothd(8)removes the Advertisement. A client can use it to do cleanup tasks. There is no need to callUnregisterAdvertisement()because when this method gets called it has already been unregistered. π§
π PROPERTIES π
string Type [readonly]β Determines the type of advertising packet requested. Possible values:"broadcast""peripheral"
array{string} ServiceUUIDs [readonly, optional]β List of UUIDs to include in the"Service UUID"field of the Advertising Data. πdict ManufacturerData [readonly, optional]β Manufacturer Data fields to include in the Advertising Data. Keys are the Manufacturer ID to associate with the data.array{string} SolicitUUIDs [readonly, optional]β List of UUIDs to include in the"Service Solicitation"field of the Advertising Data.dict ServiceData [readonly, optional]β Service Data elements to include in the Advertising Data. The keys are the UUID to associate with the data.dict Data [readonly, optional]β Advertising Data to include. Key is the advertising type and value is the data as byte array.
Note: Types already handled by other properties shall not be used.
Possible values:
<type> <byte array>
Example:
<Transport Discovery> <Organization Flags...> 0x26
0x01 0x01...
array{string} ScanResponseServiceUUIDs [readonly, optional, experimental]β List of UUIDs to include in the"Service UUID"field of the Scan Response Data. π¦dict ScanResponseManufacturerData [readonly, optional, experimental]β Manufacturer Data fields to include in the Scan Response Data. Keys are the Manufacturer ID to associate with the data.array{string} ScanResponseSolicitUUIDs [readonly, optional, experimental]β List of UUIDs to include in the"Service Solicitation"field of the Scan Response Data.dict ScanResponseServiceData [readonly, optional, experimental]β Service Data elements to include in the Scan Response Data. The keys are the UUID to associate with the data.dict ScanResponseData [readonly, optional, experimental]β Scan Response Data to include. Key is the advertising type and value is the data as byte array.bool Discoverable [readonly, optional]β Advertise as general discoverable. When present this will override adapter Discoverable property.
Note: This property shall not be set when Type is set to "broadcast".
uint16 DiscoverableTimeout [readonly, optional]β The discoverable timeout in seconds. A value of zero means that the timeout is disabled and it will stay in discoverable/limited mode forever.
Note: This property shall not be set when Type is set to "broadcast".
array{string} Includes [readonly, optional]β List of features to be included in the advertising packet. Possible values: Seeorg.bluez.LEAdvertisingManager(5)SupportedIncludes property.string LocalName [readonly, optional]β Local name to be used in the advertising report. If the string is too big to fit into the packet it will be truncated. If this property is available'local-name'cannot be present in theIncludes.uint16 Appearance [readonly, optional]β Appearance to be used in the advertising report. Possible values: as found on GAP Service.uint16 Duration [readonly, optional]β Rotation duration of the advertisement in seconds. If there are other applications advertising no duration is set the default is 2 seconds.uint16 Timeout [readonly, optional]β Timeout of the advertisement in seconds. This defines the lifetime of the advertisement.string SecondaryChannel [readonly, optional]β Secondary channel to be used. Primary channel is always set to"1M"except when"Coded"is set. Possible value:"1M"(default)"2M""Coded"
uint32 MinInterval [readonly, optional]β Minimum advertising interval to be used by the advertising set, in milliseconds. Acceptable values are in the range[20ms, 10,485s]. If the provided MinInterval is larger than the provided MaxInterval, the registration will return failure. πuint32 MaxInterval [readonly, optional]β Maximum advertising interval to be used by the advertising set, in milliseconds. Acceptable values are in the range[20ms, 10,485s]. If the provided MinInterval is larger than the provided MaxInterval, the registration will return failure. π₯int16 TxPower [readonly, optional]β Requested transmission power of this advertising set. The provided value is used only if the"CanSetTxPower"feature is enabled on theorg.bluez.LEAdvertisingManager(5). Values must be in range[-127 to +20], where units are in dBm.byte Instance [read-write, optional]β Instance of the advertisement. Set bybluetoothdafter advertisement is registered withorg.bluez.LEAdvertisingManager(5). π«Ά
Mwah π β brought to you by BlueZ, dated October 2023, with the manual-page tag org.bluez...ertisement(5). Periodt. π
π¦ where this page comes from
- arch rolling: bluez-utils 5.87-2 Β· GPL-2.0-only
- nixpkgs unstable: bluez 5.87
- ubuntu stonking: bluez 5.87-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms